Skip to content

Commit 0411083

Browse files
committed
Update romi reference
1 parent b0e5f19 commit 0411083

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

RomiReference/commands/arcadedrive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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())

RomiReference/robotcontainer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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(

run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

6869
IGNORED_TESTS="
6970
RamseteCommand
70-
RomiReference
7171
PhysicsCamSim/src
7272
"
7373

0 commit comments

Comments
 (0)