Trying to fix the weird drive problems on pizzabox, new problem came up. Config mistake?

This commit is contained in:
NerdyBirdy460
2024-01-20 21:46:44 -06:00
parent 46ea23bef8
commit 3a614697f7

View File

@@ -98,6 +98,8 @@ public class SodiPizzaTeleOPState extends CyberarmState {
if(System.currentTimeMillis() - startingTime <= 2000) {
getApproxObjPos();
}
/*Driving can now differentiate between positive and negative directions, but now it's acting like
the directions of left stick are switched with eachother (Forward/backward moves robot left/right and vice versa)*/
double y = -engine.gamepad1.left_stick_y; // Remember, Y stick value is reversed
double x = engine.gamepad1.left_stick_x * 1.1; // Counteract imperfect strafing