From 74aa3201ce470817bf1b1225ab92d1d25931e6d1 Mon Sep 17 00:00:00 2001 From: JacobCrabill Date: Tue, 7 Apr 2020 08:45:40 -0700 Subject: [PATCH] uavcannode: Fix Kelvin/Celcius in RawAirData pub --- src/drivers/uavcannode/UavcanNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/uavcannode/UavcanNode.cpp b/src/drivers/uavcannode/UavcanNode.cpp index be329e4d0c..1ef3385576 100644 --- a/src/drivers/uavcannode/UavcanNode.cpp +++ b/src/drivers/uavcannode/UavcanNode.cpp @@ -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);