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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarcadeDrive(double xaxisSpeed, double zaxisRotate) doubledoubledoubledoublevoidMethods 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, 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()
-