mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 03:44:08 +08:00
AirspeedWing: log the airspeed innovation test ratio
- if the value exceeds 1, then airspeed checks will trigger - useful to monitoring the check and tuning Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
parent
59710b15ae
commit
d468ec4e1d
@ -9,6 +9,7 @@ float32 variance_east # Wind estimate error variance in east / Y direction (m/s
|
||||
|
||||
float32 tas_innov # True airspeed innovation
|
||||
float32 tas_innov_var # True airspeed innovation variance
|
||||
float32 tas_innov_integ_test_ratio # Value > 1 indicates that innovation failure check has triggered
|
||||
|
||||
float32 tas_scale_raw # Estimated true airspeed scale factor (not validated)
|
||||
float32 tas_scale_raw_var # True airspeed scale factor variance
|
||||
|
||||
@ -107,6 +107,8 @@ AirspeedValidator::get_wind_estimator_states(uint64_t timestamp)
|
||||
wind_est.tas_scale_raw = _wind_estimator.get_tas_scale();
|
||||
wind_est.tas_scale_raw_var = _wind_estimator.get_tas_scale_var();
|
||||
wind_est.tas_scale_validated = _CAS_scale_validated;
|
||||
wind_est.tas_innov_integ_test_ratio = _tas_innov_integ_threshold > FLT_EPSILON ? _aspd_innov_integ_state /
|
||||
_tas_innov_integ_threshold : 0.f;
|
||||
return wind_est;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user