Package frc.robot.subsystems
Class XRPDrivetrain
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.XRPDrivetrain
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
,edu.wpi.first.wpilibj2.command.Subsystem
public class XRPDrivetrain
extends edu.wpi.first.wpilibj2.command.SubsystemBase
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
arcadeDrive
(double xaxisSpeed, double zaxisRotate) double
double
double
double
void
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, periodic, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd
-
Constructor Details
-
XRPDrivetrain
public XRPDrivetrain()Creates a new XRPDrivetrain.
-
-
Method Details
-
arcadeDrive
public void arcadeDrive(double xaxisSpeed, double zaxisRotate) -
resetEncoders
public void resetEncoders() -
getLeftDistanceInch
public double getLeftDistanceInch() -
getRightDistanceInch
public double getRightDistanceInch() -
getAverageDistanceInch
public double getAverageDistanceInch() -
getAverageTurningDistance
public double getAverageTurningDistance()
-