Skip to content

Commit

Permalink
UAVCAN Node Correct C to Kelvin conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
davids5 authored and dagar committed Feb 2, 2022
1 parent ec441fd commit 3358712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/uavcannode/Publishers/StaticTemperature.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class StaticTemperature :

if ((hrt_elapsed_time(&_last_static_temperature_publish) > 1_s) && uORB::SubscriptionCallbackWorkItem::update(&baro)) {
uavcan::equipment::air_data::StaticTemperature static_temperature{};
static_temperature.static_temperature = baro.temperature + CONSTANTS_ABSOLUTE_NULL_CELSIUS;
static_temperature.static_temperature = baro.temperature - CONSTANTS_ABSOLUTE_NULL_CELSIUS;
uavcan::Publisher<uavcan::equipment::air_data::StaticTemperature>::broadcast(static_temperature);

// ensure callback is registered
Expand Down

0 comments on commit 3358712

Please sign in to comment.