Class Driver

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

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

    • Driver

      public Driver()
    • 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