|
| smartdrive (motor_group &l, motor_group &r, vex::gyro &g, float wheelTravel=200, float trackWidth=176, float wheelBase=50, distanceUnits unit=distanceUnits::mm, float externalGearRatio=1.0) |
|
| smartdrive (vex::motor &l, vex::motor &r, vex::gyro &g, float wheelTravel=200, float trackWidth=176, float wheelBase=50, distanceUnits unit=distanceUnits::mm, float externalGearRatio=1.0) |
|
| ~smartdrive () |
|
bool | turnToHeading (float angle, rotationUnits units, bool waitForCompletion=true) |
| Turn on the motors and rotate to a heading at the default velocity. More...
|
|
void | startTurnToHeading (float angle, rotationUnits units) |
|
bool | turnToHeading (float angle, rotationUnits units, float velocity, velocityUnits units_v, bool waitForCompletion=true) |
| Turn on the motors and rotate to a heading at a specified velocity. More...
|
|
void | startTurnToHeading (float angle, rotationUnits units, float velocity, velocityUnits units_v) |
|
bool | turnToRotation (float angle, rotationUnits units, bool waitForCompletion=true) |
| Turn on the motors and rotate to an angle at the default velocity. More...
|
|
void | startTurnToRotation (float angle, rotationUnits units) |
|
bool | turnToRotation (float angle, rotationUnits units, float velocity, velocityUnits units_v, bool waitForCompletion=true) |
| Turn on the motors and rotate to an angle at a specified velocity. More...
|
|
void | startTurnToRotation (float angle, rotationUnits units, float velocity, velocityUnits units_v) |
|
virtual bool | turnFor (turnType dir, float angle, rotationUnits units, bool waitForCompletion=true) |
| Turn on the motors and rotate an angle at the default velocity. More...
|
|
virtual void | startTurnFor (turnType dir, float angle, rotationUnits units) |
| Start turning the drivetrain for a given angle. More...
|
|
virtual bool | turnFor (float angle, rotationUnits units, bool waitForCompletion=true) |
| Turn on the motors and rotate an angle at the default velocity. More...
|
|
virtual void | startTurnFor (float angle, rotationUnits units) |
| Start turning the drivetrain for a given angle. More...
|
|
virtual bool | turnFor (turnType dir, float angle, rotationUnits units, float velocity, velocityUnits units_v, bool waitForCompletion=true) |
| Turn on the motors and rotate an angle at a specified velocity. More...
|
|
virtual void | startTurnFor (turnType dir, float angle, rotationUnits units, float velocity, velocityUnits units_v) |
| Start turning the drivetrain for a given angle at a given velocity. More...
|
|
virtual bool | turnFor (float angle, rotationUnits units, float velocity, velocityUnits units_v, bool waitForCompletion=true) |
| Turn on the motors and rotate an angle at a specified velocity. More...
|
|
virtual void | startTurnFor (float angle, rotationUnits units, float velocity, velocityUnits units_v) |
| Start turning the drivetrain for a given angle at a given velocity. More...
|
|
void | setHeading (float value, rotationUnits units) |
| set the gyro sensor heading to angle More...
|
|
void | setRotation (float value, rotationUnits units) |
| set the gyro sensor rotation to angle More...
|
|
float | heading (rotationUnits units=rotationUnits::deg) |
| Gets the heading (angle) of the gyro sensor. More...
|
|
float | rotation (rotationUnits units=rotationUnits::deg) |
| Gets the rotation (absolute angle) of the gyro sensor. More...
|
|
bool | isTurning () |
| Checks to see if the turnToHeading, turnToRotation or turnFor function is still running. More...
|
|
virtual bool | isMoving () |
| Checks to see if any of the motors are rotating to a specific target. More...
|
|
| drivetrain (vex::motor_group &leftMotors, vex::motor_group &rightMotors, float wheelTravel=200, float trackWidth=176, float wheelBase=50, distanceUnits unit=distanceUnits::mm, float externalGearRatio=1.0) |
| Creates a new drivetrain object. More...
|
|
| drivetrain (vex::motor &leftMotor, vex::motor &rightMotor, float wheelTravel=200, float trackWidth=176, float wheelBase=50, distanceUnits unit=distanceUnits::mm, float externalGearRatio=1.0) |
|
| ~drivetrain () |
|
void | setGearRatio (float ratio) |
| Sets the external gear ratio of the drivetrain. More...
|
|
void | setDriveVelocity (float velocity, velocityUnits units) |
| Sets the velocity of the drive based on the parameters set in the command. This command will not run the motor. Any subsequent call that does not contain a specified motor velocity will use this value. More...
|
|
void | setDriveVelocity (float velocity, percentUnits units) |
|
void | setTurnVelocity (float velocity, velocityUnits units) |
| Sets the turn velocity of the drive based on the parameters set in the command. This command will not run the motor. More...
|
|
void | setTurnVelocity (float velocity, percentUnits units) |
|
void | setTimeout (float time, timeUnits units) |
| Sets the timeout for the motor group. If the motor group does not reach its commanded position prior to the completion of the timeout, the motors will stop. More...
|
|
float | timeout (timeUnits units) |
|
bool | didTimeout () |
|
void | setStopping (brakeType mode) |
| Sets the stopping mode of the motor group by passing a brake mode as a parameter. More...
|
|
void | drive (directionType dir) |
| Turns the motors on, and drive in the specified direction. More...
|
|
void | drive (directionType dir, float velocity, velocityUnits units) |
| Turn on the motors and drive in the specified direction and a specified velocity. More...
|
|
bool | driveFor (float distance, distanceUnits units, bool waitForCompletion=true) |
| Turn on the motors and drive a distance at the default velocity. More...
|
|
bool | driveFor (directionType dir, float distance, distanceUnits units, bool waitForCompletion=true) |
| Turn on the motors and drive a distance at the default velocity. More...
|
|
bool | driveFor (float distance, distanceUnits units, float velocity, velocityUnits units_v, bool waitForCompletion=true) |
| Turn on the motors and drive a distance at a specified velocity. More...
|
|
bool | driveFor (directionType dir, float distance, distanceUnits units, float velocity, velocityUnits units_v, bool waitForCompletion=true) |
| Turn on the motors and drive a distance at a specified velocity. More...
|
|
void | startDriveFor (float distance, distanceUnits distUnit) |
| Start driving a distance at a pre-set velocity. More...
|
|
void | startDriveFor (directionType dir, float distance, distanceUnits distUnit) |
| Start driving a distance at a pre-set velocity. More...
|
|
void | startDriveFor (float distance, distanceUnits distUnit, float velocity, velocityUnits velUnit) |
| Start driving a distance at a specified velocity. More...
|
|
void | startDriveFor (directionType dir, float distance, distanceUnits distUnit, float velocity, velocityUnits velUnit) |
| Start driving a distance at a specified velocity. More...
|
|
void | turn (turnType dir) |
| Turns the motors on, and rotate in the specified direction. More...
|
|
void | turn (turnType dir, float velocity, velocityUnits units) |
| Turns the motors on, and rotate in the specified direction and a specified velocity. More...
|
|
bool | isDone (void) |
| Checks to see if all the motor are done rotating to a specific target. More...
|
|
void | stop () |
| Stops the drive using the default brake mode. More...
|
|
void | stop (brakeType mode) |
| Stops the drive using a specified brake mode. More...
|
|
void | arcade (float drivePower, float turnPower, percentUnits units=percentUnits::pct) |
| Drive in arcade mode, normally corresponding to two controller joystick axis values. More...
|
|
float | velocity (velocityUnits units) |
| Gets the average velocity of the drivetrain;. More...
|
|
float | velocity (percentUnits units) |
|
float | current (currentUnits units=currentUnits::amp) |
| Gets the total current of the drivetrain;. More...
|
|