Pizza drive works fully, still robot-centric :/

This commit is contained in:
NerdyBirdy460
2024-01-30 20:34:23 -06:00
parent 337652018d
commit 1712a77a26

View File

@@ -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,