mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_PiccoloCAN: Fix ESC voltage and current telem scaling
This commit is contained in:
parent
22ddbfd138
commit
74c99c155d
@ -743,8 +743,8 @@ bool AP_PiccoloCAN::handle_esc_message(AP_HAL::CANFrame &frame)
|
||||
|
||||
AP_ESC_Telem_Backend::TelemetryData telem {};
|
||||
|
||||
telem.voltage = float(esc.voltage) * 0.01f;
|
||||
telem.current = float(esc.current) * 0.01f;
|
||||
telem.voltage = float(esc.voltage) * 0.1f;
|
||||
telem.current = float(esc.current) * 0.1f;
|
||||
telem.motor_temp_cdeg = int16_t(esc.motorTemperature * 100);
|
||||
|
||||
update_telem_data(addr, telem,
|
||||
|
Loading…
Reference in New Issue
Block a user