From 8c2badbeec4e899e7a6c090fc8e2b7cc0a9ecba4 Mon Sep 17 00:00:00 2001 From: David Vo Date: Sun, 1 Mar 2020 11:35:48 +1100 Subject: [PATCH] Group hang objects in LiveWindow --- components/hang.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/hang.py b/components/hang.py index 9ca4cf13..cb477258 100644 --- a/components/hang.py +++ b/components/hang.py @@ -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()