mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 11:27:35 +08:00
Added trap to filter to catch NaN handling
This commit is contained in:
@@ -858,6 +858,11 @@ FixedwingEstimator::task_main()
|
||||
}
|
||||
}
|
||||
|
||||
// XXX trap for testing
|
||||
if (check == 1 || check == 2) {
|
||||
errx(1, "NUMERIC ERROR IN FILTER");
|
||||
}
|
||||
|
||||
// If non-zero, we got a filter reset
|
||||
if (check) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user