AP_PiccoloCAN: Fix ESC voltage and current telem scaling

This commit is contained in:
Reilly Callaway 2023-02-09 10:51:24 +11:00 committed by Randy Mackay
parent 27240716dd
commit b3982a61f7
1 changed files with 2 additions and 2 deletions

View File

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