-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
geodetic_utils build version #1
Conversation
…nstructor to default.
@marija-p @enricgalceran do you guys prefer catkin over catkin_simple? |
|
||
double _init_lat; | ||
double _init_lon; | ||
double _init_h; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the preceding _
here and above and I would prefer initial_x
, init
can always stand for initialize and initial.
@dymczykm Not necesarily, I just used catkin here because I was looking at other mav packages using it as an example. I can change to catkin_simple if preferred. |
Changed variable name
e56311b
to
f7240ea
Compare
@ffurrer That's all been done now. |
static const double semiminor_axis = 6356752.3142; | ||
static const double first_eccentricity_squared = 6.69437999014 * 0.001; | ||
static const double second_eccentricity_squared = 6.73949674228 * 0.001; | ||
static const double flattening = 1 / 298.257223563; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
switch to constexpr (http://stackoverflow.com/questions/13346879/const-vs-constexpr-on-variables).
And if you use google style guide, constants are named as kConstantName
(http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Constant_Names), but this is up to you :).
@ffurrer Thanks, done! |
{ | ||
} | ||
|
||
void initialiseReference(const double lat, const double lon, const double altitude) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for const prefacing these. It's copied over anyway, doesn't matter if the values are changed inside.
Except for parameters as pointers for output, LGTM from my side. |
@helenol I've made the changes without getting muddled up with the pointers, hopefully. :-) Seems to compile and work fine for me! |
geodetic_utils build version
I just added a README to master based on the current version of the code. Let me know if I should open a pull request for documentation stuff next time :P @helenol @enricgalceran |
The conversions were tested on path_publisher and validated with the old conversion functions (now removed) and polycoverage. Please let me know if there are any issues with this, or if the coding can be done more elegantly! :-)
@enricgalceran