Merge branch 'feature/#5-motion' into feature/#18-calibrated-movement

This commit is contained in:
hhaupt 2024-05-12 11:48:53 +02:00
commit aba3c7d559

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);
} }
}; };