Copter: disable inertial nav

This commit is contained in:
Randy Mackay 2015-02-09 21:38:09 +09:00
parent fbe87afb9c
commit 9bd3a7249a
1 changed files with 2 additions and 4 deletions

View File

@ -333,10 +333,8 @@ static bool position_ok()
return (filt_status.flags.horiz_pos_abs && !filt_status.flags.const_pos_mode);
}
} else {
// with interial nav use GPS based checks
return (home_is_set() && gps.status() >= AP_GPS::GPS_OK_FIX_3D &&
!gps_glitch.glitching() && !failsafe.gps &&
!ekf_check_state.bad_compass && !failsafe.ekf);
// do not allow navigation with older inertial nav
return false;
}
}