Class HeadingController
java.lang.Object
frc.robot.systems.drive.controllers.HeadingController
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LoggedTunableNumberstatic final LoggedTunableNumberstatic final LoggedTunableNumberstatic final LoggedTunableNumberstatic final LoggedTunableNumberstatic final LoggedTunableNumber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetSnapOutput(edu.wpi.first.math.geometry.Rotation2d robotRotation) doublegetStabilizingOutput(edu.wpi.first.math.geometry.Rotation2d robotRotation, double velocityDPS) voidreset(edu.wpi.first.math.geometry.Rotation2d robotRotation, edu.wpi.first.math.geometry.Rotation2d robotRotationPerSecond) voidsetHeadingGoal(Supplier<edu.wpi.first.math.geometry.Rotation2d> goalSupplier) void
-
Field Details
-
snapP
-
snapI
-
snapD
-
snapMaxVDPS
-
snapMaxADPSS
-
toleranceDegrees
-
-
Constructor Details
-
HeadingController
public HeadingController()
-
-
Method Details
-
setHeadingGoal
-
reset
public void reset(edu.wpi.first.math.geometry.Rotation2d robotRotation, edu.wpi.first.math.geometry.Rotation2d robotRotationPerSecond) -
getSnapOutput
public double getSnapOutput(edu.wpi.first.math.geometry.Rotation2d robotRotation) -
getStabilizingOutput
public double getStabilizingOutput(edu.wpi.first.math.geometry.Rotation2d robotRotation, double velocityDPS) -
updateHeadingController
public void updateHeadingController()
-