Skip to content
Snippets Groups Projects
Commit 24f8f029 authored by Paul Riseborough's avatar Paul Riseborough Committed by Andrew Tridgell
Browse files

Plane : disable AHRS centrifugal corrections when disarmed

parent a87df0ad
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,6 @@ static void update_events(void);
void gcs_send_text_fmt(const prog_char_t *fmt, ...);
static void print_flight_mode(AP_HAL::BetterStream *port, uint8_t mode);
////////////////////////////////////////////////////////////////////////////////
// DataFlash
////////////////////////////////////////////////////////////////////////////////
......@@ -1084,7 +1083,10 @@ 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);
update_home();
} else {
ahrs.set_correct_centrifugal(true);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment