#include <MotorControl.hh>
Inherits Module.
Inherited by PositionControl.
The MotorControl class is an abstract base class for all modules that perform feedback control of rotational motors.
Public Member Functions | |
| MotorControl (char *name, int index) | |
| virtual void | init (void)=0 |
| virtual void | uninit (void)=0 |
| virtual void | activate (void)=0 |
| virtual void | deactivate (void)=0 |
| virtual void | update (void)=0 |
| void | getGains (MotorGains_t *g) |
| void | setGains (MotorGains_t *g) |
| void | setGains (float Kp, float Kd, float Ka=0.0) |
| void | getTarget (MotorTarget_t *t) |
| void | setTarget (MotorTarget_t *t) |
Protected Attributes | |
| DCMotorHW * | dcmotors |
| MotorTarget_t | target |
| MotorGains_t | gains |
| DCMotorHW::MotorParam_t | motorparams |
| DCMotorHW::MotorCalib_t | calib |
|
||||||||||||
|
This constructor creates a motor control module with the supplied name and index. All motor control module are by definition single user |
|
|
This method returns the current control gain settings. |
|
|
This method returns the current control target for this module. |
|
||||||||||||||||
|
This method sets the current control gain settings through individual arguments. |
|
|
This method sets the current control gain settings. |
|
|
This method sets the current control target for this module. |