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
Modifier and TypeFieldDescriptiondouble
double
double
Fields inherited from class xbot.common.subsystems.drive.BaseDriveSubsystem
kThrottleDeadband, lastRawCommandedDirection, lastRawCommandedRotation
Fields inherited from class xbot.common.command.BaseSubsystem
aKitLog, dataFrameRefreshables, log
-
Constructor Summary
ConstructorDescriptionMockDriveSubsystem
(XCANMotorController.XCANMotorControllerFactory canTalonFactory, PIDManager.PIDManagerFactory pf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
double
Returns the total distance tracked by the encoder - On the LEFT side of the robot - Pointing in the direction of +Y traveldouble
Returns the total distance tracked by the encoder - On the RIGHT side of the robot - Pointing in the direction of +Y traveldouble
Returns the total distance tracked by the encoder - In the center of the robot - Pointing in the direction of +X travelvoid
Methods inherited from class xbot.common.subsystems.drive.BaseDriveSubsystem
arcadeDrive, cheesyDrive, drive, drive, drive, fieldOrientedDrive, getMaxOutput, setQuickTurn, stop, tankDrive
Methods inherited from class xbot.common.command.BaseSubsystem
getPrefix, periodic, refreshDataFrame, registerDataFrameRefreshable
Methods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
move
in classBaseDriveSubsystem
-
changeIntoNoDrive
public void changeIntoNoDrive() -
changeIntoTankDrive
public void changeIntoTankDrive() -
changeIntoMecanum
public void changeIntoMecanum() -
getLeftTotalDistance
public double getLeftTotalDistance()Description copied from class:BaseDriveSubsystem
Returns the total distance tracked by the encoder - On the LEFT side of the robot - Pointing in the direction of +Y travel- Specified by:
getLeftTotalDistance
in classBaseDriveSubsystem
-
getRightTotalDistance
public double getRightTotalDistance()Description copied from class:BaseDriveSubsystem
Returns the total distance tracked by the encoder - On the RIGHT side of the robot - Pointing in the direction of +Y travel- Specified by:
getRightTotalDistance
in classBaseDriveSubsystem
-
getTransverseDistance
public double getTransverseDistance()Description copied from class:BaseDriveSubsystem
Returns the total distance tracked by the encoder - In the center of the robot - Pointing in the direction of +X travel- Specified by:
getTransverseDistance
in classBaseDriveSubsystem
-
getPositionalPid
- Specified by:
getPositionalPid
in classBaseDriveSubsystem
-
getRotateToHeadingPid
- Specified by:
getRotateToHeadingPid
in classBaseDriveSubsystem
-
getRotateDecayPid
- Specified by:
getRotateDecayPid
in classBaseDriveSubsystem
-