Package lib.humaninput
Class Driver
java.lang.Object
lib.humaninput.HumanInput
lib.humaninput.Driver
- All Implemented Interfaces:
Nameable
- Direct Known Subclasses:
NathanGain,RuffyDriver,SwerveDriver
Driver specific version of HumanInterface.
-
Field Summary
Fields inherited from class lib.humaninput.HumanInput
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract edu.wpi.first.math.geometry.Translation2dabstract doubleprotected doublescaleGain(double input, double exp) Alias forMathUtil.copyDirectionPow(double, double)Methods inherited from class lib.humaninput.HumanInput
bindCommands, getName, unbindCommands
-
Constructor Details
-
Driver
-
-
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 forMathUtil.copyDirectionPow(double, double)
-