Skip to content

Commit

Permalink
[rotorcraft] add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Aug 15, 2014
1 parent 1d4057c commit a237998
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sw/airborne/firmwares/rotorcraft/navigation.c
Expand Up @@ -409,6 +409,7 @@ void nav_move_waypoint_lla(uint8_t wp_id, struct LlaCoor_i* new_lla_pos) {
if (stateIsLocalCoordinateValid()) {
struct EnuCoor_i enu;
enu_of_lla_point_i(&enu, &state.ned_origin_i, new_lla_pos);
// convert ENU pos from cm to BFP with INT32_POS_FRAC
enu.x = POS_BFP_OF_REAL(enu.x)/100;
enu.y = POS_BFP_OF_REAL(enu.y)/100;
enu.z = POS_BFP_OF_REAL(enu.z)/100;
Expand Down

0 comments on commit a237998

Please sign in to comment.