forked from Archive/PX4-Autopilot
Roboclaw: Added DutyCycle command in Roboclaw destructor to turn off motors
This commit is contained in:
parent
a857df88e4
commit
184993daa3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue