Merge branch 'master' into pr-remoteid-static-period-as-last-msg-threshold

This commit is contained in:
Brian Hilnbrand 2023-02-21 14:31:48 -06:00 committed by GitHub
commit 802935c2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;