AP_Periph: Fix hwesc telem temp units

This commit is contained in:
rishabsingh3003 2023-02-22 00:24:23 +05:30 committed by Andrew Tridgell
parent 0b048b4b42
commit 32a0c8935e

View File

@ -1620,7 +1620,7 @@ void AP_Periph_FW::hwesc_telem_update()
pkt.esc_index = g.esc_number; pkt.esc_index = g.esc_number;
pkt.voltage = t.voltage; pkt.voltage = t.voltage;
pkt.current = t.current; 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.rpm = t.rpm;
pkt.power_rating_pct = t.phase_current; pkt.power_rating_pct = t.phase_current;
pkt.error_count = t.error_count; pkt.error_count = t.error_count;