From 865da3a0f0e6e941568a29849624abf5f47c2960 Mon Sep 17 00:00:00 2001 From: Reilly Callaway Date: Thu, 9 Feb 2023 10:51:24 +1100 Subject: [PATCH] AP_PiccoloCAN: Fix ESC voltage and current telem scaling --- libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp index 27551a0dc6..c73d93ae18 100644 --- a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp +++ b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp @@ -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,