forked from Archive/PX4-Autopilot
uavcannode: Fix Kelvin/Celcius in RawAirData pub
This commit is contained in:
parent
4f718086ea
commit
74aa3201ce
|
@ -365,8 +365,8 @@ void UavcanNode::Run()
|
|||
// raw_air_data.static_pressure =
|
||||
raw_air_data.differential_pressure = diff_press.differential_pressure_raw_pa;
|
||||
// raw_air_data.static_pressure_sensor_temperature =
|
||||
raw_air_data.differential_pressure_sensor_temperature = diff_press.temperature;
|
||||
raw_air_data.static_air_temperature = diff_press.temperature + CONSTANTS_ABSOLUTE_NULL_CELSIUS;
|
||||
raw_air_data.differential_pressure_sensor_temperature = diff_press.temperature - CONSTANTS_ABSOLUTE_NULL_CELSIUS;
|
||||
raw_air_data.static_air_temperature = diff_press.temperature - CONSTANTS_ABSOLUTE_NULL_CELSIUS;
|
||||
// raw_air_data.pitot_temperature
|
||||
// raw_air_data.covariance
|
||||
_raw_air_data_publisher.broadcast(raw_air_data);
|
||||
|
|
Loading…
Reference in New Issue