JMotor
|
defines interface for controlling any ground-based drivetrain More...
#include <JDrivetrain.h>
Public Member Functions | |
virtual JTwoDTransform | getVel (bool _run=false) |
virtual JTwoDTransform | getDist (bool _run=false) |
virtual void | setDistSetpoint (JTwoDTransform _dist, bool _run=false) |
virtual void | setDistDelta (JTwoDTransform _dist, bool _run=false) |
virtual void | resetDist () |
virtual void | setMotorVel (float vel, unsigned char i, bool _run=false) |
virtual void | setMotorDistSetpoint (float distSetpoint, unsigned char i, bool _run=false) |
virtual void | setMotorDistDelta (float distDelta, unsigned char i, bool _run=false) |
virtual float | getMotorVel (unsigned char i) |
virtual unsigned char | getNumberMotors () |
Public Member Functions inherited from JDrivetrainBasic | |
virtual void | run ()=0 |
call this in loop. it calls any encoder or motor update functions | |
virtual bool | setEnable (bool _enable)=0 |
enables or disables movement | |
virtual bool | enable ()=0 |
enables movement | |
virtual bool | disable ()=0 |
disables movement | |
virtual bool | getEnable ()=0 |
gets the current state (enabled or disabled) | |
virtual void | setVel (JTwoDTransform _vel, bool _run=false)=0 |
sets a velocity for the drivetrain to move at | |
virtual JTwoDTransform | getMaxVel ()=0 |
returns the approximate maximum velocity of the drivetrain, if the drivetrain is told to move at max velocity, it should set the motors to full power. | |
defines interface for controlling any ground-based drivetrain
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.
|
virtual |
Reimplemented in JDrivetrainFieldOriented, JDrivetrainMecanum, JDrivetrainTwoSide, and JDrivetrainControllerBasic.