mirror of https://github.com/FOME-Tech/fome-fw.git
init & override
This commit is contained in:
parent
dc55784102
commit
f11856c07d
|
@ -77,7 +77,7 @@ private:
|
||||||
OutputPin* const m_disable;
|
OutputPin* const m_disable;
|
||||||
float m_value = 0;
|
float m_value = 0;
|
||||||
|
|
||||||
ControlType m_type;
|
ControlType m_type = ControlType::PwmDirectionPins;
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @param enable SimplePwm driver for enable pin, for PWM speed control.
|
* @param enable SimplePwm driver for enable pin, for PWM speed control.
|
||||||
|
@ -90,8 +90,8 @@ public:
|
||||||
float get() const override;
|
float get() const override;
|
||||||
bool isOpenDirection() const override;
|
bool isOpenDirection() const override;
|
||||||
|
|
||||||
void enable();
|
void enable() override;
|
||||||
void disable();
|
void disable() override;
|
||||||
|
|
||||||
void setType(ControlType type) { m_type = type; }
|
void setType(ControlType type) { m_type = type; }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue