Closed berlin2049 closed 2 years ago
Edit function 【u_result RPlidarDriverImplCommon::startMotor()】 in 【sdk\src\rplidar_driver.cpp】 line 2175, as below
u_result RPlidarDriverImplCommon::startMotor()
{
if (_isSupportingMotorCtrl) { // RPLIDAR A2
setMotorPWM(DEFAULT_MOTOR_PWM);
delay(500);
return RESULT_OK;
}
else { // RPLIDAR A1
rp::hal::AutoLocker l(_lock);
_chanDev->clearDTR();
delay(500);
return RESULT_OK;
}
}
Although the parameter "serial_port" and "serial_baudrate"(1000 000) are set correct, sometimes still cannot start the ladar and report error.