- All Known Implementing Classes:
Claw, Intake, Launcher, Mode
public interface Toggleable
Something one button switches on and off: an
Intake, a
Launcher's spin, a
Claw, or a
Mode.
g2.rb.toggle(robot.intake) presses
toggle().
The part itself remembers whether it is on, so the button and an action never disagree.
Docs: docs/modules/robot.md
-
Method Summary
void
Switches on if off, off if on.
-
Method Details
-
toggle
void toggle()
Switches on if off, off if on.