Tracker: allow for "in-flight" compass learning

This commit is contained in:
Andrew Tridgell 2018-10-19 18:31:34 +11:00
parent a8f5079df9
commit 75b2c8bf1b
1 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,10 @@ void Tracker::one_second_loop()
set_home(temp_loc);
}
}
// need to set "likely flying" when armed to allow for compass
// learning to run
ahrs.set_likely_flying(hal.util->get_soft_armed());
}
void Tracker::ten_hz_logging_loop()