Package frc.robot.swerve
Class TranslationYController
java.lang.Object
frc.robot.swerve.TranslationYController
Uses a profiled PID Controller to quickly turn the robot to a specified angle. Once the robot is
within a certain tolerance of the goal angle, a PID controller is used to hold the robot at that
angle.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
atGoal
(double current) double
calculate
(DoubleSupplier goalMeters, DoubleSupplier currentMeters) void
reset
(double currentMeters) void
updatePID
(double kP, double kI, double kD)
-
Constructor Details
-
TranslationYController
-
-
Method Details
-
calculate
-
atGoal
public boolean atGoal(double current) -
reset
public void reset(double currentMeters) -
updatePID
public void updatePID(double kP, double kI, double kD)
-