Mecanum drive class that uses mecanum wheels for full translation and rotation.
More...
#include <MecanumDrive.h>
|
| | MecanumDrive (SpeedController *mFrontLeft, SpeedController *mFrontRight, SpeedController *mBackRight, SpeedController *mBackLeft) |
| |
| void | drive (float x=0.0, float y=0.0, float r=0.0) |
| | Uses mecanum wheels to drive. Capable of full translation and rotation. More...
|
| |
| | Drivebase (SpeedController *mFrontLeft, SpeedController *mFrontRight, SpeedController *mBackRight, SpeedController *mBackLeft) |
| | Constructor; sets all motors. More...
|
| |
| virtual | ~Drivebase () |
| | Deletes all motors. More...
|
| |
| virtual void | stop () |
| | Disables the drivebase and sets the command to zero the motor. More...
|
| |
| bool | getEnabled () |
| | Gets the status of the drivebase. More...
|
| |
Mecanum drive class that uses mecanum wheels for full translation and rotation.
| ADBLib::MecanumDrive::MecanumDrive |
( |
SpeedController * |
mFrontLeft, |
|
|
SpeedController * |
mFrontRight, |
|
|
SpeedController * |
mBackRight, |
|
|
SpeedController * |
mBackLeft |
|
) |
| |
|
inline |
| void ADBLib::MecanumDrive::drive |
( |
float |
x = 0.0, |
|
|
float |
y = 0.0, |
|
|
float |
r = 0.0 |
|
) |
| |
|
virtual |
Uses mecanum wheels to drive. Capable of full translation and rotation.
- Parameters
-
| x | Strafing. Negative is left, positive is right. From -1 to 1. |
| y | Forward/Reverse. Positive is forward, negative is reverse. From 1 to -1. |
| r | Rotation. Positive is clockwise, negative is counterclockwise. From 1 to -1. |
- Todo:
- Test wheel rotations with a real mecanum drive
Implements ADBLib::Drivebase.
The documentation for this class was generated from the following files: