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

This commit is contained in:
PerFrivik
2023-11-28 16:30:17 +01:00
committed by Matthias Grob
parent a857df88e4
commit 184993daa3
+2 -2
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);
}