Skip to content

Commit

Permalink
[modules] mission_rotorcraft: only check for ned_initialized_i
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Nov 26, 2014
1 parent c24b395 commit f15cd03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sw/airborne/modules/mission/mission_rotorcraft_nav.c
Expand Up @@ -39,9 +39,9 @@

/// Utility function: converts lla (int) to local point (float)
bool_t mission_point_of_lla(struct EnuCoor_f *point, struct LlaCoor_i *lla) {
// return FALSE if there is no valid local coordinate
// FIXME we should only test if local frame is initialized, not valid
if (!stateIsLocalCoordinateValid()) return FALSE;
// return FALSE if there is no valid local coordinate system
if (!state.ned_initialized_i)
return FALSE;

// change geoid alt to ellipsoid alt
lla->alt = lla->alt - state.ned_origin_i.hmsl + state.ned_origin_i.lla.alt;
Expand Down

0 comments on commit f15cd03

Please sign in to comment.