From fd2a6157e2de349ef96857ce9b9ee1d2fdd6497c Mon Sep 17 00:00:00 2001 From: ary Date: Sat, 2 Dec 2023 00:04:20 -0500 Subject: [PATCH] tank --- RUN-THAT-BACK/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RUN-THAT-BACK/src/main.cpp b/RUN-THAT-BACK/src/main.cpp index 85335cf..e7cacfc 100644 --- a/RUN-THAT-BACK/src/main.cpp +++ b/RUN-THAT-BACK/src/main.cpp @@ -148,9 +148,9 @@ void opcontrol() { while (true) { // get joystick positions int leftY = controller.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_Y); - int rightX = controller.get_analog(pros::E_CONTROLLER_ANALOG_RIGHT_X); + int rightY = controller.get_analog(pros::E_CONTROLLER_ANALOG_RIGHT_Y); // move the chassis with curvature drive - chassis.curvature(leftY, rightX); + chassis.tank(leftY, rightY); // delay to save resources pros::delay(10); }