Skip to content

Commit

Permalink
AP_DroneCAN: correct compilation when AP_DRONECAN_VOLZ_FEEDBACK_ENABL…
Browse files Browse the repository at this point in the history
…ED enabled
  • Loading branch information
peterbarker committed Dec 31, 2024
1 parent 5de498f commit 6d7fcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_DroneCAN/AP_DroneCAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ void AP_DroneCAN::handle_actuator_status_Volz(const CanardRxTransfer& transfer,
.voltage = msg.voltage * 0.2,
.current = msg.current * 0.025,
.duty_cycle = msg.motor_pwm * (100.0/255.0),
.motor_temperature_cdeg = (int16_t(msg.motor_temperature) - 50)) * 100,
.motor_temperature_cdeg = (int16_t(msg.motor_temperature) - 50) * 100,
.valid_types = AP_Servo_Telem::TelemetryData::Types::MEASURED_POSITION |
AP_Servo_Telem::TelemetryData::Types::VOLTAGE |
AP_Servo_Telem::TelemetryData::Types::CURRENT |
Expand Down

0 comments on commit 6d7fcce

Please sign in to comment.