AP_NavEKF3: get_time_flying in vehicle
This commit is contained in:
parent
2970334c0d
commit
dd75609599
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user