mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Periph: fixed temperature reporting
more common to have ESC temp than motor temp, so report ESC temperature
This commit is contained in:
parent
7c57e1521c
commit
d62e946d48
@ -1561,7 +1561,7 @@ void AP_Periph_FW::esc_telem_update()
|
||||
pkt.current = nan;
|
||||
}
|
||||
int16_t temperature;
|
||||
if (esc_telem.get_motor_temperature(i, temperature)) {
|
||||
if (esc_telem.get_temperature(i, temperature)) {
|
||||
pkt.temperature = temperature*0.01 + C_TO_KELVIN;
|
||||
} else {
|
||||
pkt.temperature = nan;
|
||||
|
Loading…
Reference in New Issue
Block a user