WindEstimator: use isAllFinite()

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer 2023-01-17 14:31:05 +01:00 committed by Daniel Agar
parent a6d14796e4
commit d32f400851
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}