mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: move high_latency_air_temperature up
This commit is contained in:
parent
1200f25e05
commit
9a3fed0263
@ -1404,18 +1404,6 @@ uint8_t GCS_MAVLINK_Plane::high_latency_wind_direction() const
|
|||||||
// need to convert -180->180 to 0->360/2
|
// need to convert -180->180 to 0->360/2
|
||||||
return wrap_360(degrees(atan2f(-wind.y, -wind.x))) / 2;
|
return wrap_360(degrees(atan2f(-wind.y, -wind.x))) / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
int8_t GCS_MAVLINK_Plane::high_latency_air_temperature() const
|
|
||||||
{
|
|
||||||
// return units are degC
|
|
||||||
AP_Airspeed *airspeed = AP_Airspeed::get_singleton();
|
|
||||||
float air_temperature;
|
|
||||||
if (airspeed != nullptr && airspeed->enabled() && airspeed->get_temperature(air_temperature)) {
|
|
||||||
return air_temperature;
|
|
||||||
}
|
|
||||||
|
|
||||||
return INT8_MIN;
|
|
||||||
}
|
|
||||||
#endif // HAL_HIGH_LATENCY2_ENABLED
|
#endif // HAL_HIGH_LATENCY2_ENABLED
|
||||||
|
|
||||||
MAV_VTOL_STATE GCS_MAVLINK_Plane::vtol_state() const
|
MAV_VTOL_STATE GCS_MAVLINK_Plane::vtol_state() const
|
||||||
|
@ -69,7 +69,6 @@ private:
|
|||||||
uint8_t high_latency_tgt_airspeed() const override;
|
uint8_t high_latency_tgt_airspeed() const override;
|
||||||
uint8_t high_latency_wind_speed() const override;
|
uint8_t high_latency_wind_speed() const override;
|
||||||
uint8_t high_latency_wind_direction() const override;
|
uint8_t high_latency_wind_direction() const override;
|
||||||
int8_t high_latency_air_temperature() const override;
|
|
||||||
#endif // HAL_HIGH_LATENCY2_ENABLED
|
#endif // HAL_HIGH_LATENCY2_ENABLED
|
||||||
|
|
||||||
MAV_VTOL_STATE vtol_state() const override;
|
MAV_VTOL_STATE vtol_state() const override;
|
||||||
|
Loading…
Reference in New Issue
Block a user