mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 20:30:35 +08:00
msg: AirspeedValidated - uorb topic to standard (#25579)
* AirspeedValidated - uorb topic to standard * Apply suggestions from code review * Update msg/versioned/AirspeedValidated.msg * Fix up links to renamed uORB constants --------- Co-authored-by: PX4BuildBot <bot@pixhawk.org>
This commit is contained in:
@@ -2085,10 +2085,10 @@ void EKF2::UpdateAirspeedSample(ekf2_timestamps_s &ekf2_timestamps)
|
||||
if (_airspeed_validated_sub.update(&airspeed_validated)) {
|
||||
|
||||
if (PX4_ISFINITE(airspeed_validated.true_airspeed_m_s)
|
||||
&& (airspeed_validated.airspeed_source > airspeed_validated_s::GROUND_MINUS_WIND)
|
||||
&& (airspeed_validated.airspeed_source > airspeed_validated_s::SOURCE_GROUND_MINUS_WIND)
|
||||
) {
|
||||
|
||||
_ekf.setSyntheticAirspeed(airspeed_validated.airspeed_source == airspeed_validated_s::SYNTHETIC);
|
||||
_ekf.setSyntheticAirspeed(airspeed_validated.airspeed_source == airspeed_validated_s::SOURCE_SYNTHETIC);
|
||||
|
||||
float cas2tas = 1.f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user