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 bc342da commit bca4ea8
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;

//Compute ENU components from LLA with respect to ltp origin
struct EnuCoor_i tmp_enu_point_i;
Expand Down

0 comments on commit bca4ea8

Please sign in to comment.