uavcannode: Fix Kelvin/Celcius in RawAirData pub

This commit is contained in:
JacobCrabill 2020-04-07 08:45:40 -07:00 committed by Lorenz Meier
parent 4f718086ea
commit 74aa3201ce
1 changed files with 2 additions and 2 deletions

View File

@ -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);