Skip to content

Commit

Permalink
fixed limits smore
Browse files Browse the repository at this point in the history
  • Loading branch information
iamawesomecat committed Mar 19, 2024
1 parent 044dbd6 commit 94c6e58
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ public double getAngleSpeed() {

public void setAngleManual(double joystickInput) {
manualAngleSetpoint =
MathUtil.clamp(manualAngleSetpoint + joystickInput * MANUAL_MODIFIER, 0.71f, 0.95f);
MathUtil.clamp(manualAngleSetpoint + joystickInput * MANUAL_MODIFIER, 0.80f, 0.96f);

if (Units.degreesToRotations(getAngle()) > 0.71
&& Units.degreesToRotations(getAngle()) < 0.95) {
if (Units.degreesToRotations(getAngle()) > 0.80
&& Units.degreesToRotations(getAngle()) < 0.96) {
launcherAngleOnePIDController.setReference(
manualAngleSetpoint,
ControlType.kPosition,
Expand Down

0 comments on commit 94c6e58

Please sign in to comment.