mirror of
https://github.com/TimeCrafters/CenterStage
synced 2025-12-12 23:32:36 +00:00
Pizza drive works fully, still robot-centric :/
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user