2023-11-07 15:11:33 +01:00

21 lines
393 B
C++

#pragma once
#include "Thing.h"
class Motor : public Thing {
public:
Motor();
/// @brief Turning direction of the motor
enum Direction { Forward = 1,
Reverse = -1 };
/// @brief Set the turning direction of the motor
// void SetDirection(Direction direction);
virtual void SetSpeed(float speed);
float GetSpeed();
protected:
float currentSpeed = 0;
};