|
|
|
@ -486,6 +486,7 @@ void AirspeedModule::update_wind_estimator_sideslip()
@@ -486,6 +486,7 @@ void AirspeedModule::update_wind_estimator_sideslip()
|
|
|
|
|
_wind_estimate_sideslip.beta_innov = _wind_estimator_sideslip.get_beta_innov(); |
|
|
|
|
_wind_estimate_sideslip.beta_innov_var = _wind_estimator_sideslip.get_beta_innov_var(); |
|
|
|
|
_wind_estimate_sideslip.tas_scale = _wind_estimator_sideslip.get_tas_scale(); |
|
|
|
|
_wind_estimate_sideslip.source = wind_estimate_s::SOURCE_AS_BETA_ONLY; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AirspeedModule::update_ground_minus_wind_airspeed() |
|
|
|
@ -593,6 +594,17 @@ void AirspeedModule::select_airspeed_and_publish()
@@ -593,6 +594,17 @@ void AirspeedModule::select_airspeed_and_publish()
|
|
|
|
|
/* publish the wind estimator states from all airspeed validators */ |
|
|
|
|
for (int i = 0; i < _number_of_airspeed_sensors; i++) { |
|
|
|
|
wind_estimate_s wind_est = _airspeed_validator[i].get_wind_estimator_states(_time_now_usec); |
|
|
|
|
|
|
|
|
|
if (i == 0) { |
|
|
|
|
wind_est.source = wind_estimate_s::SOURCE_AS_SENSOR_1; |
|
|
|
|
|
|
|
|
|
} else if (i == 1) { |
|
|
|
|
wind_est.source = wind_estimate_s::SOURCE_AS_SENSOR_2; |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
wind_est.source = wind_estimate_s::SOURCE_AS_SENSOR_3; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
_wind_est_pub[i + 1].publish(wind_est); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|