Browse Source

uavcannode: Fix Kelvin/Celcius in RawAirData pub

sbg
JacobCrabill 5 years ago committed by Lorenz Meier
parent
commit
74aa3201ce
  1. 4
      src/drivers/uavcannode/UavcanNode.cpp

4
src/drivers/uavcannode/UavcanNode.cpp

@ -365,8 +365,8 @@ void UavcanNode::Run() @@ -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…
Cancel
Save