fix motor running with empty battery
This commit is contained in:
+1
-3
@@ -139,9 +139,7 @@ void loop() {
|
||||
|
||||
mainBattery->loop();
|
||||
if (mainBattery->isBatteryLow(10)) {
|
||||
moveController.setDrivingStatus(DrivingStatus::stop);
|
||||
moveController.setSpeed(0);
|
||||
moveController.setRotationSpeed(0);
|
||||
moveController.emergencyStop();
|
||||
|
||||
uint16_t voltage = (uint16_t) (mainBattery->getBatteryVoltage() * 100);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user