Sub: enable in-flight compass learning

This commit is contained in:
Andrew Tridgell 2018-10-19 18:30:11 +11:00
parent de58fb4637
commit a8f5079df9

View File

@ -291,6 +291,10 @@ void Sub::one_hz_loop()
// init compass location for declination
init_compass_location();
// need to set "likely flying" when armed to allow for compass
// learning to run
ahrs.set_likely_flying(hal.util->get_soft_armed());
}
// called at 50hz