AP_NavEKF3: get_time_flying in vehicle

This commit is contained in:
Peter Hall 2020-01-06 23:07:27 +00:00 committed by WickedShell
parent 2970334c0d
commit dd75609599

View File

@ -385,7 +385,8 @@ void NavEKF3_core::detectFlight()
// If more than 5 seconds since likely_flying was set
// true, then set inFlight true
if (_ahrs->get_time_flying_ms() > 5000) {
const AP_Vehicle *vehicle = AP::vehicle();
if (vehicle->get_time_flying_ms() > 5000) {
inFlight = true;
}
}