Class RuffyDriver

java.lang.Object
lib.humaninput.HumanInput
lib.humaninput.Driver
robot.humaninterface.drivers.RuffyDriver
All Implemented Interfaces:
Nameable

public class RuffyDriver extends Driver
  • Constructor Details

    • RuffyDriver

      public RuffyDriver()
  • Method Details

    • bindCommands

      public void bindCommands()
      Description copied from class: HumanInput
      A function where the driver's and operator's controls are bound to commands

      Can't be done in the constructor because constructors are called too early

      Specified by:
      bindCommands in class HumanInput
    • unbindCommands

      public void unbindCommands()
      Description copied from class: HumanInput
      Can be optionally overridden to unbind commands that were bound in bindCommands().

      You should do this for any commands that were not bound to one of the following:

      See CommandRobotBase.clearBindings()
      Overrides:
      unbindCommands in class HumanInput
    • getRawForward

      protected double getRawForward()
    • getRawLeft

      protected double getRawLeft()
    • getTranslation

      public edu.wpi.first.math.geometry.Translation2d getTranslation()
      Specified by:
      getTranslation in class Driver
      Returns:
      Speed that the driver wants, in wpilib field-relative coordinates (forward, left). Length of translation vector should not exceed 1
    • getTurnSpeed

      public double getTurnSpeed()
      Specified by:
      getTurnSpeed in class Driver
      Returns:
      Turn speed that the driver wants in the range [-1, 1], positive = counterclockwise