changed numieric constant with correct constant variable in move()

This commit is contained in:
hhaupt 2024-05-12 11:41:20 +02:00
parent 60314ec101
commit ad41f6b5ca

View File

@ -42,8 +42,8 @@ void Motion::move(uint32_t moveForMs) {
if (moveForMs > 0){ if (moveForMs > 0){
xTaskCreate(moveTask, "Move", 4096, (void*)moveForMs, 10, &xMoveTaskHandle); xTaskCreate(moveTask, "Move", 4096, (void*)moveForMs, 10, &xMoveTaskHandle);
} else{ } else{
Motion::left.setSpeed(4096); Motion::left.setSpeed(LEFT_MOTOR_DUTY);
Motion::right.setSpeed(4096); Motion::right.setSpeed(RIGHT_MOTOR_DUTY);
} }
}; };