We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcb9300 commit f687a40Copy full SHA for f687a40
commands-v2/armbot/robotcontainer.py
@@ -56,13 +56,13 @@ def configureButtonBindings(self) -> None:
56
57
# Move the arm to 2 radians above horizontal when the 'A' button is pressed.
58
self.driver_controller.A().onTrue(
59
- commands2.cmd.run(self.moveArm(2), [self.robot_arm])
+ commands2.cmd.run(lambda: self.moveArm(2), [self.robot_arm])
60
)
61
62
# Move the arm to neutral position when the 'B' button is pressed
63
self.driver_controller.B().onTrue(
64
commands2.cmd.run(
65
- self.moveArm(constants.ArmConstants.kArmOffsetRads), [self.robot_arm]
+ lambda: self.moveArm(constants.ArmConstants.kArmOffsetRads), [self.robot_arm]
66
67
68
0 commit comments