Class Driver

All Implemented Interfaces:
Nameable
Direct Known Subclasses:
NathanGain, RuffyDriver, SwerveDriver

public abstract class Driver extends HumanInput
Driver specific version of HumanInterface.
  • Constructor Details

    • Driver

      public Driver(String name)
  • Method Details

    • getTranslation

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

      public abstract double getTurnSpeed()
      Returns:
      Turn speed that the driver wants in the range [-1, 1], positive = counterclockwise
    • scaleGain

      protected double scaleGain(double input, double exp)
      Alias for MathUtil.copyDirectionPow(double, double)