mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +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;
|
bool primary_updated = false;
|
||||||
|
|
||||||
// default estimator timeout
|
// default estimator timeout
|
||||||
hrt_abstime status_timeout = 50_ms;
|
const 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
// calculate individual error scores
|
// calculate individual error scores
|
||||||
for (uint8_t i = 0; i < EKF2_MAX_INSTANCES; i++) {
|
for (uint8_t i = 0; i < EKF2_MAX_INSTANCES; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user