Plane : changed useage of ahrs.set_correct_centrifugal

This commit is contained in:
Paul Riseborough 2014-02-16 21:08:20 +11:00 committed by Andrew Tridgell
parent 275ef86f86
commit 98f72a4864

View File

@ -1083,7 +1083,11 @@ static void update_GPS_10Hz(void)
if (!arming.is_armed() ||
hal.util->safety_switch_state() == AP_HAL::Util::SAFETY_DISARMED) {
ahrs.set_correct_centrifugal(false);
if (g_gps->status() >= GPS::GPS_OK_FIX_3D) {
ahrs.set_correct_centrifugal(true);
} else {
ahrs.set_correct_centrifugal(false);
}
update_home();
} else {
ahrs.set_correct_centrifugal(true);