From 45d6bc135a162ef84515f7f339aaf9f609c535ac Mon Sep 17 00:00:00 2001 From: dublUayaychtee Date: Fri, 22 Mar 2024 16:23:28 -0400 Subject: [PATCH] change climber controls for driver so that they don't conflict --- rio/robotcontainer.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rio/robotcontainer.py b/rio/robotcontainer.py index c99a0dd..a7d30bc 100644 --- a/rio/robotcontainer.py +++ b/rio/robotcontainer.py @@ -194,10 +194,16 @@ def configureButtonBindings(self) -> None: self.driverController.start().onTrue(ResetYaw(self.robotDrive)) # Climbing - self.driverController.rightBumper().whileTrue( + self.driverController.pov(0).whileTrue( Climb( - lambda: self.opController.getRightTriggerAxis() - - self.opController.getLeftTriggerAxis(), + 1, + self.climber, + self.shooter, + ) + ) + self.driverController.pov(180).whileTrue( + Climb( + 1, self.climber, self.shooter, )