From 32a0c8935eabd0592603535f01ec6e7b8aaa4a0a Mon Sep 17 00:00:00 2001 From: rishabsingh3003 Date: Wed, 22 Feb 2023 00:24:23 +0530 Subject: [PATCH] AP_Periph: Fix hwesc telem temp units --- Tools/AP_Periph/can.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/AP_Periph/can.cpp b/Tools/AP_Periph/can.cpp index 934cf2d598..6c73bbdeb6 100644 --- a/Tools/AP_Periph/can.cpp +++ b/Tools/AP_Periph/can.cpp @@ -1620,7 +1620,7 @@ void AP_Periph_FW::hwesc_telem_update() pkt.esc_index = g.esc_number; pkt.voltage = t.voltage; pkt.current = t.current; - pkt.temperature = MAX(t.mos_temperature, t.cap_temperature); + pkt.temperature = C_TO_KELVIN(MAX(t.mos_temperature, t.cap_temperature)); pkt.rpm = t.rpm; pkt.power_rating_pct = t.phase_current; pkt.error_count = t.error_count;