fix pwm channel

This commit is contained in:
2023-10-11 11:38:17 +02:00
parent f41cf5c6eb
commit a00e8d6d03
6 changed files with 27 additions and 25 deletions
+2 -1
View File
@@ -17,7 +17,7 @@ void TestMode::run() {
this->abort = true;
}
if (millis() - this->actionStart > this->maneuverTime || this->abort) {
if (this->busy && millis() - this->actionStart > this->maneuverTime || this->abort) {
this->busy = false;
this->abort = false;
this->moveControl->setDrivingStatus(MoveControl::Status::Stop);
@@ -83,6 +83,7 @@ bool TestMode::leftEngine(int16_t powerPercentage, int16_t seconds) {
if (this->engineInit(powerPercentage, seconds)) {
this->moveControl->setRawPowerLeft(powerPercentage);
this->maneuver = Maneuver::LeftEngine;
std::cout << "TestMode::leftEngine" << std::endl;
return true;
}
return false;