fix motor running with empty battery

This commit is contained in:
2023-04-20 12:32:21 +02:00
parent 07f09d691f
commit 974118b643
+1 -3
View File
@@ -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);