Skip to content

Commit

Permalink
AirspeedValidator: only disable innov checks if ASPD_FS_INTEG is nega…
Browse files Browse the repository at this point in the history
…tive

Signed-off-by: Silvan Fuhrer <[email protected]>
  • Loading branch information
sfuhrer committed Jun 11, 2024
1 parent a886ee9 commit b6aa0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/airspeed_selector/AirspeedValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ AirspeedValidator::check_airspeed_innovation(uint64_t time_now, float estimator_

// reset states if check is disabled, we are not flying or wind estimator was just initialized/reset
if (!_innovation_check_enabled || !_in_fixed_wing_flight || (time_now - _time_wind_estimator_initialized) < 5_s
|| _tas_innov_integ_threshold <= 0.f) {
|| _tas_innov_integ_threshold < -FLT_EPSILON) {
_innovations_check_failed = false;
_aspd_innov_integ_state = 0.f;

Expand Down

0 comments on commit b6aa0b1

Please sign in to comment.