Package xbot.common.subsystems.drive
Class MockDriveSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
xbot.common.command.BaseSubsystem
xbot.common.subsystems.drive.BaseDriveSubsystem
xbot.common.subsystems.drive.MockDriveSubsystem
- All Implemented Interfaces:
Sendable,Subsystem,DataFrameRefreshable,IPropertySupport
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubledoubledoubleFields inherited from class xbot.common.subsystems.drive.BaseDriveSubsystem
kThrottleDeadbandFields inherited from class xbot.common.command.BaseSubsystem
aKitLog, dataFrameRefreshables, 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 xbot.common.subsystems.drive.BaseDriveSubsystem
arcadeDrive, cheesyDrive, drive, drive, drive, fieldOrientedDrive, getMaxOutput, getPowerForRelativePositionChange, getPowerForRelativePositionChange, setQuickTurn, stop, tankDriveMethods inherited from class xbot.common.command.BaseSubsystem
getPrefix, periodic, refreshDataFrame, registerDataFrameRefreshableMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, 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
-