From 1712a77a260975526cb64ffc2267dfaed3195ca5 Mon Sep 17 00:00:00 2001 From: NerdyBirdy460 <111399933+NerdyBirdy460@users.noreply.github.com> Date: Tue, 30 Jan 2024 20:34:23 -0600 Subject: [PATCH] Pizza drive works fully, still robot-centric :/ --- .../CenterStage/TeleOp/States/SodiPizzaTeleOPState.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TeamCode/src/main/java/org/timecrafters/CenterStage/TeleOp/States/SodiPizzaTeleOPState.java b/TeamCode/src/main/java/org/timecrafters/CenterStage/TeleOp/States/SodiPizzaTeleOPState.java index c36e546..3acaae1 100644 --- a/TeamCode/src/main/java/org/timecrafters/CenterStage/TeleOp/States/SodiPizzaTeleOPState.java +++ b/TeamCode/src/main/java/org/timecrafters/CenterStage/TeleOp/States/SodiPizzaTeleOPState.java @@ -98,11 +98,10 @@ public class SodiPizzaTeleOPState extends CyberarmState { if(System.currentTimeMillis() - startingTime <= 2000) { getApproxObjPos(); } -/*Driving is almost all normal hopefully.*/ - double y = engine.gamepad1.left_stick_y; // Remember, Y stick value is reversed + double y = engine.gamepad1.left_stick_y; double x = engine.gamepad1.left_stick_x * 1.1; // Counteract imperfect strafing - double rx = engine.gamepad1.right_stick_x; + double rx = -engine.gamepad1.right_stick_x; // Denominator is the largest motor power (absolute value) or 1 // This ensures all the powers maintain the same ratio,