File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def __init__(
2929 self .forward = forward
3030 self .rotation = rotation
3131
32- self .addRequirements ([ self .drive ] )
32+ self .addRequirements (self .drive )
3333
3434 def execute (self ) -> None :
3535 self .drive .arcadeDrive (self .forward (), self .rotation ())
Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ def _configureButtonBindings(self):
6363 self .drivetrain .setDefaultCommand (self .getArcadeDriveCommand ())
6464
6565 # Example of how to use the onboard IO
66- onboardButtonA = commands2 .button .Button (self .onboardIO .getButtonAPressed )
67- onboardButtonA .whenActive (
68- commands2 .PrintCommand ("Button A Pressed " )
69- ). whenInactive ( commands2 . PrintCommand ( "Button A Released" ))
66+ onboardButtonA = commands2 .button .Trigger (self .onboardIO .getButtonAPressed )
67+ onboardButtonA .onTrue ( commands2 . PrintCommand ( "Button A Pressed" )). onFalse (
68+ commands2 .PrintCommand ("Button A Released " )
69+ )
7070
7171 # Setup SmartDashboard options
7272 self .chooser .setDefaultOption (
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ BASE_TESTS="
4848 QuickVision
4949 RamseteController
5050 Relay
51+ RomiReference
5152 SchedulerEventLogging
5253 SelectCommand
5354 ShuffleBoard
@@ -67,7 +68,6 @@ BASE_TESTS="
6768
6869IGNORED_TESTS="
6970 RamseteCommand
70- RomiReference
7171 PhysicsCamSim/src
7272"
7373
You can’t perform that action at this time.
0 commit comments