Skip to content

Commit ef4a1cb

Browse files
depricate wrist reset windup and implement fix on wrist
1 parent eb28881 commit ef4a1cb

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

components/wrist.py

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

8484
def on_enable(self):
85-
# self.tilt_to(WristComponent.NEUTRAL_ANGLE)
85+
self.last_setpoint_update_time = wpilib.Timer.getFPGATimestamp()
8686
self._tilt_to(self.inclination())
8787
self.idle_mode = SparkMaxConfig.IdleMode.kBrake
8888
wrist_config = SparkMaxConfig()
@@ -156,9 +156,6 @@ def _tilt_to(self, pos: float):
156156
def go_to_neutral(self) -> None:
157157
self.tilt_to(WristComponent.NEUTRAL_ANGLE)
158158

159-
def reset_windup(self) -> None:
160-
self.tilt_to(self.inclination())
161-
162159
@feedback
163160
def at_limit(self) -> bool:
164161
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)