mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: AP_Periph: fix building of hwesc telem
This was broken by the APD support
This commit is contained in:
parent
35dda812ae
commit
3fd2865857
@ -1600,7 +1600,7 @@ void AP_Periph_FW::hwesc_telem_update()
|
||||
const HWESC_Telem::HWESC &t = hwesc_telem.get_telem();
|
||||
|
||||
uavcan_equipment_esc_Status pkt {};
|
||||
pkt.esc_index = g.esc_number;
|
||||
pkt.esc_index = g.esc_number[0]; // only supports a single ESC
|
||||
pkt.voltage = t.voltage;
|
||||
pkt.current = t.current;
|
||||
pkt.temperature = C_TO_KELVIN(MAX(t.mos_temperature, t.cap_temperature));
|
||||
|
Loading…
Reference in New Issue
Block a user