Skip to content

Commit 10b83f5

Browse files
authored
Merge pull request #388 from thedropbears/fix-windup
2 parents b61b28b + 52a61c1 commit 10b83f5

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

components/intake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _force_retract(self):
115115
self.last_setpoint_update_time = wpilib.Timer.getFPGATimestamp()
116116

117117
def on_enable(self) -> None:
118-
self.retract()
118+
self._force_retract()
119119
self.desired_output = 0.0
120120

121121
def execute(self) -> None:

components/wrist.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ def __init__(self, mech_root: wpilib.MechanismRoot2d):
8282
)
8383

8484
def on_enable(self):
85-
# self.tilt_to(WristComponent.NEUTRAL_ANGLE)
8685
self._tilt_to(self.inclination())
8786
self.idle_mode = SparkMaxConfig.IdleMode.kBrake
8887
wrist_config = SparkMaxConfig()
@@ -156,9 +155,6 @@ def _tilt_to(self, pos: float):
156155
def go_to_neutral(self) -> None:
157156
self.tilt_to(WristComponent.NEUTRAL_ANGLE)
158157

159-
def reset_windup(self) -> None:
160-
self.tilt_to(self.inclination())
161-
162158
@feedback
163159
def at_limit(self) -> bool:
164160
return self.motor.getReverseLimitSwitch().get()

robot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,6 @@ def disabledPeriodic(self) -> None:
348348
self.chassis.update_alliance()
349349
self.chassis.update_odometry()
350350

351-
self.wrist.reset_windup()
352-
self.wrist.execute()
353-
354351
self.starboard_vision.execute()
355352
self.port_vision.execute()
356353

0 commit comments

Comments
 (0)