changed numieric constant with correct constant variable in move()
This commit is contained in:
1 parent
60314ec101
commit
ad41f6b5ca
1 file changed
+2
-2
@@ -42,8 +42,8 @@ void Motion::move(uint32_t moveForMs) {
|
||||
if (moveForMs > 0){
|
||||
xTaskCreate(moveTask, "Move", 4096, (void*)moveForMs, 10, &xMoveTaskHandle);
|
||||
} else{
|
||||
Motion::left.setSpeed(4096);
|
||||
Motion::right.setSpeed(4096);
|
||||
Motion::left.setSpeed(LEFT_MOTOR_DUTY);
|
||||
Motion::right.setSpeed(RIGHT_MOTOR_DUTY);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user