Skip to content

Instantly share code, notes, and snippets.

@ArchdukeTim
Created February 17, 2019 18:23
Show Gist options
  • Save ArchdukeTim/949358545a2026c960127038e447d766 to your computer and use it in GitHub Desktop.
Save ArchdukeTim/949358545a2026c960127038e447d766 to your computer and use it in GitHub Desktop.
Overridable autonomous
class OverridableAutonomous(AutonomousStateMachine)
joystick: wpilib.Joystick
def on_iteration(self):
if self.joystick.getRawButton()
# change to teleop
class Autonomous(OverridableAutonomous):
@timed_state
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment