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__(
29
29
self .forward = forward
30
30
self .rotation = rotation
31
31
32
- self .addRequirements ([ self .drive ] )
32
+ self .addRequirements (self .drive )
33
33
34
34
def execute (self ) -> None :
35
35
self .drive .arcadeDrive (self .forward (), self .rotation ())
Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ def _configureButtonBindings(self):
63
63
self .drivetrain .setDefaultCommand (self .getArcadeDriveCommand ())
64
64
65
65
# 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
+ )
70
70
71
71
# Setup SmartDashboard options
72
72
self .chooser .setDefaultOption (
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ BASE_TESTS="
48
48
QuickVision
49
49
RamseteController
50
50
Relay
51
+ RomiReference
51
52
SchedulerEventLogging
52
53
SelectCommand
53
54
ShuffleBoard
@@ -67,7 +68,6 @@ BASE_TESTS="
67
68
68
69
IGNORED_TESTS="
69
70
RamseteCommand
70
- RomiReference
71
71
PhysicsCamSim/src
72
72
"
73
73
You can’t perform that action at this time.
0 commit comments