mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
Plane : changed useage of ahrs.set_correct_centrifugal
This commit is contained in:
parent
275ef86f86
commit
98f72a4864
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user