Package ftclib.drivebase
Class FtcRobotDrive
java.lang.Object
ftclib.drivebase.FtcRobotDrive
- Direct Known Subclasses:
FtcDifferentialDrive
,FtcMecanumDrive
,FtcSwerveDrive
This class is intended to be extended by subclasses implementing different robot drive bases.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This class contains the Common Robot Info.static class
This class contains Vision parameters of a camera. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal TrcMotor[]
final FtcImu
static final int
static final int
static final int
static final int
static final int
static final int
final FtcRobotDrive.RobotInfo
-
Constructor Summary
ConstructorsConstructorDescriptionFtcRobotDrive
(FtcRobotDrive.RobotInfo robotInfo) Constructor: Create an instance of the object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
This method cancels any drive operation still in progress.void
This method cancels any drive operation still in progress.protected void
configDriveBase
(TrcDriveBase driveBase) This method configures the rest of drive base after it has been created.
-
Field Details
-
INDEX_LEFT_FRONT
public static final int INDEX_LEFT_FRONT- See Also:
-
INDEX_RIGHT_FRONT
public static final int INDEX_RIGHT_FRONT- See Also:
-
INDEX_LEFT_BACK
public static final int INDEX_LEFT_BACK- See Also:
-
INDEX_RIGHT_BACK
public static final int INDEX_RIGHT_BACK- See Also:
-
INDEX_LEFT_CENTER
public static final int INDEX_LEFT_CENTER- See Also:
-
INDEX_RIGHT_CENTER
public static final int INDEX_RIGHT_CENTER- See Also:
-
robotInfo
-
gyro
-
driveMotors
-
driveBase
-
pidDrive
-
purePursuitDrive
-
-
Constructor Details
-
FtcRobotDrive
Constructor: Create an instance of the object.- Parameters:
robotInfo
- specifies the Robot Info.
-
-
Method Details
-
cancel
This method cancels any drive operation still in progress.- Parameters:
owner
- specifies the owner that requested the cancel.
-
cancel
public void cancel()This method cancels any drive operation still in progress. -
configDriveBase
This method configures the rest of drive base after it has been created.- Parameters:
driveBase
- specifies the created drive base.
-