From 5a731e5fa418d3c7304bf2da657c93c2d5d735bd Mon Sep 17 00:00:00 2001 From: 99cardz Date: Wed, 10 Jan 2024 13:57:03 +0100 Subject: [PATCH] vTask Testing --- src/motion/Motion.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/motion/Motion.cpp b/src/motion/Motion.cpp index d4c0113..049a75d 100644 --- a/src/motion/Motion.cpp +++ b/src/motion/Motion.cpp @@ -31,6 +31,11 @@ void moveTask(void * moveForMs) { // Move forward for a certain amount of time. void Motion::move(uint32_t moveForMs) { xTaskCreate(moveTask, "Move", configMINIMAL_STACK_SIZE, (void*)moveForMs, 1, NULL); + // analogWrite(MOTOR_LEFT_PIN, 128); + // analogWrite(MOTOR_RIGHT_PIN, 128); + // vTaskDelay(moveForMs); + // analogWrite(MOTOR_LEFT_PIN, 0); + // analogWrite(MOTOR_RIGHT_PIN, 0); }