Skip to content

Commit

Permalink
add safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
SachetK committed Dec 3, 2024
1 parent 16a0d1c commit 33a1d13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ElevatorSubsystem(
val clamped = if (slideAngle.invoke() < Math.toRadians(75.0))
clamp(value, 0.0, 20.0)
else
value
clamp(value, 0.0, 30.0)

controller.goal = TrapezoidProfile.State(clamped, 0.0)
field = clamped
Expand Down

0 comments on commit 33a1d13

Please sign in to comment.