Class PilotStates

java.lang.Object
frc.robot.pilot.PilotStates

public class PilotStates extends Object
This class should have any command calls that directly call the Pilot
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static edu.wpi.first.wpilibj2.command.Command
    log(edu.wpi.first.wpilibj2.command.Command cmd)
     
    static edu.wpi.first.wpilibj2.command.Command
    rumble(double intensity, double durationSeconds)
    Command that can be used to rumble the pilot controller
    static void
    Set the states for the pilot controller
    static void
    Set default command to turn off the rumble
    static edu.wpi.first.wpilibj2.command.Command
    Command that can be used to turn on the slow mode.
    static edu.wpi.first.wpilibj2.command.Command
    Command that can be used to turn on the turbo mode.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PilotStates

      public PilotStates()
  • Method Details

    • setupDefaultCommand

      public static void setupDefaultCommand()
      Set default command to turn off the rumble
    • setStates

      public static void setStates()
      Set the states for the pilot controller
    • rumble

      public static edu.wpi.first.wpilibj2.command.Command rumble(double intensity, double durationSeconds)
      Command that can be used to rumble the pilot controller
    • slowMode

      public static edu.wpi.first.wpilibj2.command.Command slowMode()
      Command that can be used to turn on the slow mode. Slow mode modifies the fwd, left, and CCW methods, we don't want these to require the pilot subsystem arm
    • turboMode

      public static edu.wpi.first.wpilibj2.command.Command turboMode()
      Command that can be used to turn on the turbo mode. Turbo mode modifies CCW methods, we don't want these to require the pilot subsystem
    • log

      protected static edu.wpi.first.wpilibj2.command.Command log(edu.wpi.first.wpilibj2.command.Command cmd)