33 virtual float get()
const = 0;
40 const char*
msg()
const {
99 virtual bool set(
float duty)
override;
100 float get()
const override;
Brushed or brushless DC motor interface.
virtual bool set(float duty)=0
Sets the motor duty cycle.
virtual float get() const =0
Get the current motor duty cycle.
virtual bool isOpenDirection() const =0
virtual void disable(const char *msg)=0
Single output pin reference and state.
Represents a DC motor controller (H-bridge) with some combination of PWM and on/off control pins....
OutputPin *const m_disable
float get() const override
Get the current motor duty cycle.
void setType(ControlType type)
void disable(const char *msg) override
void configure(IPwm &enable, IPwm &dir1, IPwm &dir2, bool isInverted)
virtual bool set(float duty) override
bool isOpenDirection() const override