-
-
Save ArchdukeTim/949358545a2026c960127038e447d766 to your computer and use it in GitHub Desktop.
Overridable autonomous
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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