Skip to content

Commit f687a40

Browse files
committed
Fix cmd.run* usage
1 parent dcb9300 commit f687a40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commands-v2/armbot/robotcontainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ def configureButtonBindings(self) -> None:
5656

5757
# Move the arm to 2 radians above horizontal when the 'A' button is pressed.
5858
self.driver_controller.A().onTrue(
59-
commands2.cmd.run(self.moveArm(2), [self.robot_arm])
59+
commands2.cmd.run(lambda: self.moveArm(2), [self.robot_arm])
6060
)
6161

6262
# Move the arm to neutral position when the 'B' button is pressed
6363
self.driver_controller.B().onTrue(
6464
commands2.cmd.run(
65-
self.moveArm(constants.ArmConstants.kArmOffsetRads), [self.robot_arm]
65+
lambda: self.moveArm(constants.ArmConstants.kArmOffsetRads), [self.robot_arm]
6666
)
6767
)
6868

0 commit comments

Comments
 (0)