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 pRobotRotation) doublegetStabilizingOutput(edu.wpi.first.math.geometry.Rotation2d pRobotRotation, double pVelocityDPS) voidreset(edu.wpi.first.math.geometry.Rotation2d pRobotRotation, edu.wpi.first.math.geometry.Rotation2d pRobotRotationPerSecond) voidsetHeadingGoal(Supplier<edu.wpi.first.math.geometry.Rotation2d> pGoalSupplier) void
-
Field Details
-
mSnapP
-
mSnapI
-
mSnapD
-
mSnapMaxVDPS
-
mSnapMaxADPSS
-
mToleranceDegrees
-
-
Constructor Details
-
HeadingController
public HeadingController()
-
-
Method Details
-
setHeadingGoal
-
reset
public void reset(edu.wpi.first.math.geometry.Rotation2d pRobotRotation, edu.wpi.first.math.geometry.Rotation2d pRobotRotationPerSecond) -
getSnapOutput
public double getSnapOutput(edu.wpi.first.math.geometry.Rotation2d pRobotRotation) -
getStabilizingOutput
public double getStabilizingOutput(edu.wpi.first.math.geometry.Rotation2d pRobotRotation, double pVelocityDPS) -
updateHeadingController
public void updateHeadingController()
-