Class FrcRobotDrive

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frclib.drivebase.FrcRobotDrive
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Subsystem
Direct Known Subclasses:
FrcDifferentialDrive, FrcMecanumDrive, FrcSwerveDrive

public class FrcRobotDrive extends edu.wpi.first.wpilibj2.command.SubsystemBase
This class is intended to be extended by subclasses implementing different robot drive bases.
  • Field Details

  • Constructor Details

    • FrcRobotDrive

      public FrcRobotDrive(FrcRobotDrive.RobotInfo robotInfo)
      Constructor: Create an instance of the object.
      Parameters:
      robotInfo - specifies the Robot Info.
  • Method Details

    • cancel

      public void cancel(String owner)
      This method cancels any drive operation still in progress.
      Parameters:
      owner - specifies the owner that requested the cancel.
    • cancel

      public void cancel()
      This method cancels any drive operation still in progress.
    • configDriveBase

      protected void configDriveBase(TrcDriveBase driveBase)
      This method configures the rest of drive base after it has been created.
      Parameters:
      driveBase - specifies the created drive base.
    • getGyroPitch

      public double getGyroPitch()
      This method returns the gyro pitch.
      Returns:
      gyro pitch.
    • getGyroRoll

      public double getGyroRoll()
      This method returns the gyro roll.
      Returns:
      gyro roll.
    • getGyroYaw

      public double getGyroYaw()
      This method returns the gyro yaw.
      Returns:
      gyro yaw.