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, velocityYFields inherited from class xbot.common.command.BaseSubsystem
aKitLog, dataFrameRefreshables, log -
Constructor Summary
ConstructorsConstructorDescriptionMockBasePoseSubsystem(XGyro.XGyroFactory gyroFactory, PropertyFactory propManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidforceTotalXandY(double x, double y) protected doubleprotected doublevoidConsumes and processes inputs from the device or subsystem.voidsetDriveEncoderDistances(int left, int right) voidsetDriveMotors(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, updatePoseMethods inherited from class xbot.common.command.BaseSubsystem
getPrefix, 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
-
Constructor Details
-
MockBasePoseSubsystem
-
-
Method Details
-
setDriveMotors
-
getLeftDriveDistance
protected double getLeftDriveDistance()- Specified by:
getLeftDriveDistancein classBasePoseSubsystem
-
getRightDriveDistance
protected double getRightDriveDistance()- Specified by:
getRightDriveDistancein 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:DataFrameRefreshableConsumes and processes inputs from the device or subsystem.- Specified by:
refreshDataFramein interfaceDataFrameRefreshable- Overrides:
refreshDataFramein classBasePoseSubsystem
-