PID controllers hierarchy revision
This commit is contained in:
@@ -8,19 +8,27 @@
|
||||
class BrushedMotor {
|
||||
/* Driver for native MCPWM controller. */
|
||||
// TODO: define default values
|
||||
public:
|
||||
public:
|
||||
BrushedMotor(uint32_t PwmAGpioNum, uint32_t PwmBGpioNum, uint32_t PwmFreqHz,
|
||||
uint32_t McpwmResolutionHz, int McpwmGroupId = 0);
|
||||
|
||||
void setDuty(uint16_t duty);
|
||||
|
||||
uint16_t maxDuty();
|
||||
|
||||
void enable();
|
||||
|
||||
void disable();
|
||||
|
||||
void forward();
|
||||
|
||||
void reverse();
|
||||
|
||||
void coast();
|
||||
|
||||
void brake();
|
||||
|
||||
protected:
|
||||
protected:
|
||||
/* MCPWM group */
|
||||
int _mcpwmGroupId = 0;
|
||||
uint32_t _mcpwmResolutionHz;
|
||||
|
||||
Reference in New Issue
Block a user