Class MockBasePoseSubsystem
java.lang.Object
org.wpilib.command2.SubsystemBase
xbot.common.command.BaseSubsystem
xbot.common.subsystems.pose.BasePoseSubsystem
xbot.common.subsystems.pose.MockBasePoseSubsystem
- All Implemented Interfaces:
org.wpilib.command2.Subsystem, org.wpilib.telemetry.TelemetryLoggable, TunablePrefixProvider, ISwerveAdvisorPoseSupport
-
Field Summary
Fields inherited from class BasePoseSubsystem
classInstantiationTime, FACING_AWAY_FROM_DRIVERS, 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 BaseSubsystem
aKitLog, log -
Constructor Summary
ConstructorsConstructorDescriptionMockBasePoseSubsystem(XGyro.XGyroFactory gyroFactory, TunableFactory tunableFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidforceTotalXandY(double x, double y) protected doubleprotected doublevoidsetDriveEncoderDistances(int left, int right) voidsetDriveMotors(XCANMotorController left, XCANMotorController right) Methods inherited from class BasePoseSubsystem
calibrateInherentRioOrientation, 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 BaseSubsystem
getPrefixMethods 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
-
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)
-