version 1.1

This commit is contained in:
cally22
2023-07-09 20:04:44 +02:00
parent c55b7fc4ed
commit 2547e14592
7 changed files with 42 additions and 40 deletions
+5 -4
View File
@@ -13,17 +13,18 @@ class MOTOR {
int currentSpeed;
void setSpeedInternal(int speed);
MotorPosition motorPosition;
int minSpeed = 1000;
int maxSpeed = 2000;
const int speedInterval = 10;
public:
const int minSpeed = 1000;
const int maxSpeed = 2000;
const int speedInterval = 10;
void setMotorPosition(MotorPosition mp);
void setPinESC(int pin);
void setPinESC(int pin, int speedOffset);
void setSpeed(int speed);
int getSpeed();
void accelerate();
void decelerate();
void stop();
};
#endif