mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 12:27:34 +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:
@@ -319,7 +319,7 @@ msp_raw_gps_t construct_RAW_GPS(const sensor_gps_s &vehicle_gps_position,
|
||||
//raw_gps.hdop = vehicle_gps_position_struct.hdop
|
||||
raw_gps.numSat = vehicle_gps_position.satellites_used;
|
||||
|
||||
if (airspeed_validated.airspeed_source >= airspeed_validated_s::GROUND_MINUS_WIND
|
||||
if (airspeed_validated.airspeed_source >= airspeed_validated_s::SOURCE_GROUND_MINUS_WIND
|
||||
&& PX4_ISFINITE(airspeed_validated.indicated_airspeed_m_s)
|
||||
&& airspeed_validated.indicated_airspeed_m_s > 0.f) {
|
||||
raw_gps.groundSpeed = airspeed_validated.indicated_airspeed_m_s * 100;
|
||||
|
||||
Reference in New Issue
Block a user