This class defines a common interface for classes which control velocity of a motor controlled by a JMotorDriver.
More...
#include <JMotorControllerBase.h>
|
virtual void | setAccelLimit (float _accelLimit)=0 |
| set maximum rate that motor speed can be changed at
|
|
virtual void | setVelLimit (float _velLimit)=0 |
| set maximum motor speed
|
|
virtual void | setVel (float vel, bool _run=true)=0 |
| set velocity for controller
|
|
virtual void | setVelTarget (float vel, bool _run=true)=0 |
| set target velocity for controller (acceleration limited)
|
|
virtual float | getVelTarget ()=0 |
| get target velocity for controller
|
|
virtual float | getVel ()=0 |
| get current velocity of motor
|
|
virtual float | getDriverSetVal ()=0 |
| returns the value the motor driver is being set to
|
|
virtual void | run ()=0 |
| update driver
|
|
virtual bool | setEnable (bool _enable)=0 |
| change whether motor controller is enabled
|
|
virtual bool | isDriverInRange ()=0 |
| true if motor driver is being set to within its range, false if driver is at a maximum
|
|
virtual bool | enable ()=0 |
| enable motor controller
|
|
virtual bool | disable ()=0 |
| disable motor controller
|
|
virtual float | getDriverMinRange ()=0 |
| if getDriverSetVal goes below this, isDriverInRange will go false
|
|
virtual float | getDriverMaxRange ()=0 |
| if getDriverSetVal exceeds this, isDriverInRange will go false
|
|
virtual bool | getEnable ()=0 |
| is the controller enabled
|
|
virtual float | getMaxVel ()=0 |
| How fast of a motor speed setting would get adjusted to full motor power.
|
|
virtual float | getMinVel ()=0 |
| slowest speed motor can go
|
|
virtual void | setMaxDriverRangeAmount (float _driverRangeAmount)=0 |
| set what fraction of driverRange can be used
|
|
virtual float | getAccelLimit ()=0 |
| returns value of accelLimit
|
|
virtual float | getVelLimit ()=0 |
| returns value of velLimit
|
|
This class defines a common interface for classes which control velocity of a motor controlled by a JMotorDriver.
◆ disable()
virtual bool JMotorControllerBase::disable |
( |
| ) |
|
|
pure virtual |
◆ enable()
virtual bool JMotorControllerBase::enable |
( |
| ) |
|
|
pure virtual |
◆ getAccelLimit()
virtual float JMotorControllerBase::getAccelLimit |
( |
| ) |
|
|
pure virtual |
◆ getDriverMaxRange()
virtual float JMotorControllerBase::getDriverMaxRange |
( |
| ) |
|
|
pure virtual |
◆ getDriverMinRange()
virtual float JMotorControllerBase::getDriverMinRange |
( |
| ) |
|
|
pure virtual |
◆ getDriverSetVal()
virtual float JMotorControllerBase::getDriverSetVal |
( |
| ) |
|
|
pure virtual |
◆ getEnable()
virtual bool JMotorControllerBase::getEnable |
( |
| ) |
|
|
pure virtual |
◆ getMaxVel()
virtual float JMotorControllerBase::getMaxVel |
( |
| ) |
|
|
pure virtual |
◆ getMinVel()
virtual float JMotorControllerBase::getMinVel |
( |
| ) |
|
|
pure virtual |
◆ getVel()
virtual float JMotorControllerBase::getVel |
( |
| ) |
|
|
pure virtual |
◆ getVelLimit()
virtual float JMotorControllerBase::getVelLimit |
( |
| ) |
|
|
pure virtual |
◆ getVelTarget()
virtual float JMotorControllerBase::getVelTarget |
( |
| ) |
|
|
pure virtual |
◆ isDriverInRange()
virtual bool JMotorControllerBase::isDriverInRange |
( |
| ) |
|
|
pure virtual |
◆ run()
virtual void JMotorControllerBase::run |
( |
| ) |
|
|
pure virtual |
◆ setAccelLimit()
virtual void JMotorControllerBase::setAccelLimit |
( |
float |
_accelLimit | ) |
|
|
pure virtual |
◆ setEnable()
virtual bool JMotorControllerBase::setEnable |
( |
bool |
_enable | ) |
|
|
pure virtual |
◆ setMaxDriverRangeAmount()
virtual void JMotorControllerBase::setMaxDriverRangeAmount |
( |
float |
_driverRangeAmount | ) |
|
|
pure virtual |
◆ setVel()
virtual void JMotorControllerBase::setVel |
( |
float |
vel, |
|
|
bool |
_run = true |
|
) |
| |
|
pure virtual |
◆ setVelLimit()
virtual void JMotorControllerBase::setVelLimit |
( |
float |
_velLimit | ) |
|
|
pure virtual |
◆ setVelTarget()
virtual void JMotorControllerBase::setVelTarget |
( |
float |
vel, |
|
|
bool |
_run = true |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: