AP_Periph: Fix hwesc telem temp units
This commit is contained in:
parent
0b048b4b42
commit
32a0c8935e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user