version 1.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user