12#include <ESP32Servo.h>
18#include "../../Motor.hpp"
59 const uint8_t kControlPin;
60 const int kMinPulseLength;
61 const int kIdlePulseLength;
62 const int kMaxPulseLength;
63 bool mAttached{
false };
Interface programmatically representing any kind of motor.
A motor that is controlled via the length of pulses that are sent to it through a single signal line.
void setSpeed(int speed) override
Sets the motor speed and direction as the percentage of the maximum possible speed,...
const int kDefaultMinPulseLength
const int kDefaultIdlePulseLength
const int kDefaultMaxPulseLength