mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 16:56:25 +08:00
ekf2: selector remove special timeout condition
- this mainly produces false positives when disarmed and bench testing
This commit is contained in:
@@ -251,12 +251,7 @@ bool EKF2Selector::UpdateErrorScores()
|
||||
bool primary_updated = false;
|
||||
|
||||
// default estimator timeout
|
||||
hrt_abstime status_timeout = 50_ms;
|
||||
|
||||
if (hrt_elapsed_time(&_attitude_last.timestamp) > FILTER_UPDATE_PERIOD) {
|
||||
// much lower timeout if current primary estimator attitude isn't publishing
|
||||
status_timeout = 2 * FILTER_UPDATE_PERIOD;
|
||||
}
|
||||
const hrt_abstime status_timeout = 50_ms;
|
||||
|
||||
// calculate individual error scores
|
||||
for (uint8_t i = 0; i < EKF2_MAX_INSTANCES; i++) {
|
||||
|
||||
Reference in New Issue
Block a user