From 967500ab8abefa6700941d589979176677ab0d72 Mon Sep 17 00:00:00 2001 From: EnricoGuccii Date: Mon, 22 Dec 2025 23:30:13 +0100 Subject: yyy --- lib/motors/motors.h | 56 ++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'lib/motors/motors.h') diff --git a/lib/motors/motors.h b/lib/motors/motors.h index bcba09c..b7cc7f1 100644 --- a/lib/motors/motors.h +++ b/lib/motors/motors.h @@ -1,29 +1,29 @@ -#include -#include "settings.h" - -#pragma once - -class MOTORS -{ -public: - MOTORS(); - void init(); - - void forward(int speed, int duration = 0); - void backward(int speed, int duration = 0); - - void leftForward(int speed, int duration = 0); - void leftBackward(int speed, int duration = 0); - void rightForward(int speed, int duration = 0); - void rightBackward(int speed, int duration = 0); - - void leftTurn(int speed, int duration = 0); - void rightTurn(int speed, int duration = 0); - - void leftStop(); - void rightStop(); - void stop(); - -private: - int scaleSpeed(int speed); +#include +#include "settings.h" + +#pragma once + +class MOTORS +{ +public: + MOTORS(); + void init(); + + void forward(int speed, int duration = 0); + void backward(int speed, int duration = 0); + + void leftForward(int speed, int duration = 0); + void leftBackward(int speed, int duration = 0); + void rightForward(int speed, int duration = 0); + void rightBackward(int speed, int duration = 0); + + void leftTurn(int speed, int duration = 0); + void rightTurn(int speed, int duration = 0); + + void leftStop(); + void rightStop(); + void stop(); + +private: + int scaleSpeed(int speed); }; \ No newline at end of file -- cgit v1.2.3