Roboclaw: Added DutyCycle command in Roboclaw destructor to turn off motors

This commit is contained in:
PerFrivik 2023-10-10 16:07:34 +02:00 committed by Matthias Grob
parent a857df88e4
commit 184993daa3
1 changed files with 2 additions and 2 deletions

View File

@ -131,8 +131,8 @@ RoboClaw::RoboClaw(const char *deviceName, const char *baudRateParam):
RoboClaw::~RoboClaw()
{
// setMotorDutyCycle(MOTOR_1, 0.0);
// setMotorDutyCycle(MOTOR_2, 0.0);
setMotorDutyCycle(MOTOR_1, 0.0);
setMotorDutyCycle(MOTOR_2, 0.0);
close(_uart);
}