forked from Archive/PX4-Autopilot
WindEstimator: use isAllFinite()
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
a6d14796e4
commit
d32f400851
|
@ -211,7 +211,7 @@ WindEstimator::run_sanity_checks()
|
|||
}
|
||||
}
|
||||
|
||||
if (!PX4_ISFINITE(_state(INDEX_W_N)) || !PX4_ISFINITE(_state(INDEX_W_E)) || !PX4_ISFINITE(_state(INDEX_TAS_SCALE))) {
|
||||
if (!_state.isAllFinite()) {
|
||||
_initialised = false;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue