Skip to content

Commit

Permalink
Group hang objects in LiveWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Mar 7, 2020
1 parent 4ab62c1 commit 8c2badb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/hang.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def __init__(self) -> None:
def setup(self) -> None:
self.winch_motor.setInverted(True)

sendable_reg: wpilib.SendableRegistry = wpilib.SendableRegistry.getInstance()
for dev in (self.winch_motor, self.kracken_hook_latch):
sendable_reg.setSubsystem(dev, "Hang")

def on_disable(self) -> None:
# stop motors
self.winch_motor.stopMotor()
Expand Down

0 comments on commit 8c2badb

Please sign in to comment.