Skip to content

Commit

Permalink
AP_Logger: Servo logging fix (need to be squashed)
Browse files Browse the repository at this point in the history
SW-131
  • Loading branch information
loki077 committed Mar 22, 2024
1 parent d4c24f2 commit bc1b169
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions libraries/AP_Logger/LogFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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));
}
Expand Down

0 comments on commit bc1b169

Please sign in to comment.