From bc1b169e21107d38a7b69a29460f252ecf43149a Mon Sep 17 00:00:00 2001 From: Lokesh-Ramina Date: Thu, 21 Mar 2024 23:22:41 -0700 Subject: [PATCH] AP_Logger: Servo logging fix (need to be squashed) SW-131 --- libraries/AP_Logger/LogFile.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/libraries/AP_Logger/LogFile.cpp b/libraries/AP_Logger/LogFile.cpp index c4a308e537..5d6c0abcc7 100644 --- a/libraries/AP_Logger/LogFile.cpp +++ b/libraries/AP_Logger/LogFile.cpp @@ -447,8 +447,7 @@ bool AP_Logger_Backend::Write_Mode(uint8_t mode, const ModeReason reason) /* write servo status from CAN servo */ -void AP_Logger::Write_ServoStatus(uint64_t time_us, uint8_t id, float position, float force, float speed, uint8_t power_pct, - float pos_cmd, float voltage, float current, float mot_temp, float pcb_temp, uint8_t error) +void AP_Logger::Write_ServoStatus(uint64_t time_us, uint8_t id, float position, float force, float speed, uint8_t power_pct) { const struct log_CSRV pkt { LOG_PACKET_HEADER_INIT(LOG_CSRV_MSG), @@ -457,13 +456,7 @@ void AP_Logger::Write_ServoStatus(uint64_t time_us, uint8_t id, float position, position : position, force : force, speed : speed, - power_pct : power_pct, - pos_cmd : pos_cmd, - voltage : voltage, - current : current, - mot_temp : mot_temp, - pcb_temp : pcb_temp, - error : error, + power_pct : power_pct }; WriteBlock(&pkt, sizeof(pkt)); }