Class HumanInput

java.lang.Object
lib.humaninput.HumanInput
All Implemented Interfaces:
Nameable
Direct Known Subclasses:
Driver, Operator

public abstract class HumanInput extends Object implements Nameable
A generic human interface class. This is designed to be used to bind commands to controllers.
  • Field Details

    • name

      protected final String name
  • Constructor Details

    • HumanInput

      public HumanInput()
    • HumanInput

      public HumanInput(String name)
  • Method Details

    • scaleGain

      public static double scaleGain(double input, double exp, double deadzone)
    • scaleGain

      public static double scaleGain(double input, double exp)
    • getName

      public String getName()
      Specified by:
      getName in interface Nameable
    • bindCommands

      public abstract void bindCommands()
      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

    • unbindCommands

      public void unbindCommands()
      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()