Class MockDriveSubsystem
java.lang.Object
org.wpilib.command2.SubsystemBase
xbot.common.command.BaseSubsystem
xbot.common.subsystems.drive.BaseDriveSubsystem
xbot.common.subsystems.drive.MockDriveSubsystem
- All Implemented Interfaces:
org.wpilib.command2.Subsystem, org.wpilib.telemetry.TelemetryLoggable, TunablePrefixProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledoubledoubleFields inherited from class BaseDriveSubsystem
kThrottleDeadbandFields inherited from class BaseSubsystem
aKitLog, log -
Constructor Summary
ConstructorsConstructorDescriptionMockDriveSubsystem(XCANMotorController.XCANMotorControllerFactory canTalonFactory, PIDManager.PIDManagerFactory pf) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoiddoubleReturns the total distance tracked by the encoder - On the LEFT side of the robot - Pointing in the direction of +Y traveldoubleReturns the total distance tracked by the encoder - On the RIGHT side of the robot - Pointing in the direction of +Y traveldoubleReturns the total distance tracked by the encoder - In the center of the robot - Pointing in the direction of +X travelvoidMethods inherited from class BaseDriveSubsystem
arcadeDrive, cheesyDrive, drive, drive, drive, fieldOrientedDrive, getMaxOutput, getPowerForRelativePositionChange, getPowerForRelativePositionChange, setQuickTurn, stop, tankDriveMethods inherited from class BaseSubsystem
getPrefix, periodicMethods inherited from class org.wpilib.command2.SubsystemBase
getName, getTelemetryType, logTo, setNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wpilib.command2.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
leftTotalDistance
public double leftTotalDistance -
rightTotalDistance
public double rightTotalDistance -
transverseTotalDistance
public double transverseTotalDistance -
leftTank
-
rightTank
-
fl
-
fr
-
rl
-
rr
-
-
Constructor Details
-
MockDriveSubsystem
@Inject public MockDriveSubsystem(XCANMotorController.XCANMotorControllerFactory canTalonFactory, PIDManager.PIDManagerFactory pf)
-
-
Method Details
-
changePositionalPid
-
changeRotationalPid
-
move
- Specified by:
movein classBaseDriveSubsystem
-
changeIntoNoDrive
public void changeIntoNoDrive() -
changeIntoTankDrive
public void changeIntoTankDrive() -
changeIntoMecanum
public void changeIntoMecanum() -
getLeftTotalDistance
public double getLeftTotalDistance()Description copied from class:BaseDriveSubsystemReturns the total distance tracked by the encoder - On the LEFT side of the robot - Pointing in the direction of +Y travel- Specified by:
getLeftTotalDistancein classBaseDriveSubsystem
-
getRightTotalDistance
public double getRightTotalDistance()Description copied from class:BaseDriveSubsystemReturns the total distance tracked by the encoder - On the RIGHT side of the robot - Pointing in the direction of +Y travel- Specified by:
getRightTotalDistancein classBaseDriveSubsystem
-
getTransverseDistance
public double getTransverseDistance()Description copied from class:BaseDriveSubsystemReturns the total distance tracked by the encoder - In the center of the robot - Pointing in the direction of +X travel- Specified by:
getTransverseDistancein classBaseDriveSubsystem
-
getPositionalPid
- Specified by:
getPositionalPidin classBaseDriveSubsystem
-
getRotateToHeadingPid
- Specified by:
getRotateToHeadingPidin classBaseDriveSubsystem
-
getRotateDecayPid
- Specified by:
getRotateDecayPidin classBaseDriveSubsystem
-