Skip to content

Commit

Permalink
global_position: correct identation
Browse files Browse the repository at this point in the history
  • Loading branch information
TSC21 committed May 27, 2017
1 parent 35b0817 commit 555c3f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mavros/src/plugins/global_position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class GlobalPositionPlugin : public plugin::PluginBase {
// GPS_STATUS: there no corresponding ROS message, and it is not supported by APM
make_handler(&GlobalPositionPlugin::handle_global_position_int),
make_handler(&GlobalPositionPlugin::handle_gps_global_origin),
make_handler(&GlobalPositionPlugin::handle_lpned_system_global_offset)
make_handler(&GlobalPositionPlugin::handle_lpned_system_global_offset)
};
}

Expand Down Expand Up @@ -125,15 +125,15 @@ class GlobalPositionPlugin : public plugin::PluginBase {
// @todo: so to respect REP 105, we should convert from AMSL to ECEF using GeographicLib::GeoCoords (pending #693)
// see <http://www.ros.org/reps/rep-0105.html>
point->position.latitude = msg.latitude / 1E7; // deg
point->position.longitude = msg.longitude / 1E7; // deg
point->position.longitude = msg.longitude / 1E7; // deg
point->position.altitude = msg.altitude / 1E3; // m
}

template<typename MsgT>
inline void fill_lla_amsl(const geographic_msgs::GeoPointStamped::ConstPtr point, MsgT &msg) {
// @todo: add convertion from ECEF to AMSL
msg.latitude = point->position.latitude * 1E7; // deg
msg.longitude = point->position.longitude * 1E7; // deg
msg.longitude = point->position.longitude * 1E7; // deg
msg.altitude = point->position.altitude * 1E3; // m
}

Expand Down

0 comments on commit 555c3f1

Please sign in to comment.