AP_NavEKF2: use ekf_low_time_remaining for core scheduling

This commit is contained in:
Andrew Tridgell 2020-11-07 08:24:25 +11:00
parent 47c3fadc17
commit 90a8c5cb1a

View File

@ -763,7 +763,7 @@ void NavEKF2::UpdateFilter(void)
// loop then suppress the prediction step. This allows
// multiple EKF instances to cooperate on scheduling
if (core[i].getFramesSincePredict() < (_framesPerPrediction+3) &&
(AP::dal().micros64() - imuSampleTime_us) > _frameTimeUsec/3) {
AP::dal().ekf_low_time_remaining(AP_DAL::EKFType::EKF2, i)) {
statePredictEnabled[i] = false;
} else {
statePredictEnabled[i] = true;