Package xbot.common.subsystems.pose
Class MockBasePoseSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
xbot.common.command.BaseSubsystem
xbot.common.subsystems.pose.BasePoseSubsystem
xbot.common.subsystems.pose.MockBasePoseSubsystem
- All Implemented Interfaces:
Sendable
,Subsystem
,DataFrameRefreshable
,IPropertySupport
,ISwerveAdvisorPoseSupport
-
Field Summary
Fields inherited from class xbot.common.subsystems.pose.BasePoseSubsystem
classInstantiationTime, FACING_AWAY_FROM_DRIVERS, FACING_TOWARDS_DRIVERS, fieldXMidpoint, fieldYHeight, firstUpdate, headingOffset, imu, INCHES_IN_A_METER, inherentRioPitch, inherentRioRoll, isNavXReady, lastSetHeadingTime, leftDriveDistance, previousLeftDistance, previousRightDistance, rightDriveDistance, rioRotated, totalDistanceX, totalDistanceY, totalDistanceYRobotPerspective, totalVelocity, velocityX, velocityY
Fields inherited from class xbot.common.command.BaseSubsystem
aKitLog, dataFrameRefreshables, log
-
Constructor Summary
ConstructorsConstructorDescriptionMockBasePoseSubsystem
(XGyro.XGyroFactory gyroFactory, PropertyFactory propManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
forceTotalXandY
(double x, double y) protected double
protected double
void
Consumes and processes inputs from the device or subsystem.void
setDriveEncoderDistances
(int left, int right) void
setDriveMotors
(XCANMotorController left, XCANMotorController right) Methods inherited from class xbot.common.subsystems.pose.BasePoseSubsystem
calibrateInherentRioOrientation, convertBluetoRed, convertBlueToRed, convertBlueToRed, convertBlueToRedIfNeeded, convertBlueToRedIfNeeded, convertBlueToRedIfNeeded, getAlliance, getCompassHeading, getCurrentFieldPose, getCurrentHeading, getCurrentHeadingAngularVelocity, getCurrentHeadingGyroOnly, getCurrentPose2d, getCurrentVelocity, getFieldOrientedTotalDistanceTraveled, getHeadingResetRecently, getNavXReady, getRobotOrientedTotalDistanceTraveled, getRobotPitch, getRobotRoll, getRobotYaw, getSimulatedFieldPose, getTravelVector, getUntrimmedPitch, getUntrimmedRoll, getYawAngularVelocity, periodic, resetDistanceTraveled, setCurrentHeading, setCurrentPosition, updateCurrentHeading, updateOdometry, updatePose
Methods inherited from class xbot.common.command.BaseSubsystem
getPrefix, 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
-
Constructor Details
-
MockBasePoseSubsystem
-
-
Method Details
-
setDriveMotors
-
getLeftDriveDistance
protected double getLeftDriveDistance()- Specified by:
getLeftDriveDistance
in classBasePoseSubsystem
-
getRightDriveDistance
protected double getRightDriveDistance()- Specified by:
getRightDriveDistance
in classBasePoseSubsystem
-
setDriveEncoderDistances
public void setDriveEncoderDistances(int left, int right) -
forceTotalXandY
public void forceTotalXandY(double x, double y) -
refreshDataFrame
public void refreshDataFrame()Description copied from interface:DataFrameRefreshable
Consumes and processes inputs from the device or subsystem.- Specified by:
refreshDataFrame
in interfaceDataFrameRefreshable
- Overrides:
refreshDataFrame
in classBasePoseSubsystem
-