mirror of
https://github.com/TimeCrafters/UltimateGoal.git
synced 2025-12-16 14:02:34 +00:00
Aubrey stuff
This commit is contained in:
@@ -23,10 +23,20 @@ public class AubreyFirstState extends CyberarmState {
|
|||||||
UwU= -engine.gamepad1.left_stick_y ;
|
UwU= -engine.gamepad1.left_stick_y ;
|
||||||
OwO= -engine.gamepad1. right_stick_y;
|
OwO= -engine.gamepad1. right_stick_y;
|
||||||
robot.driveBackLeft.setPower(UwU);
|
robot.driveBackLeft.setPower(UwU);
|
||||||
|
if(robot. limitSwitch. isPressed()) {
|
||||||
|
double power = .5;
|
||||||
|
robot.driveFrontLeft.setPower(-power);
|
||||||
|
robot.driveFrontRight.setPower(power);
|
||||||
|
robot.driveBackLeft.setPower(-power);
|
||||||
|
robot.driveBackRight.setPower(power);
|
||||||
|
|
||||||
|
|
||||||
|
}else {
|
||||||
|
robot.driveFrontLeft.setPower(UwU);
|
||||||
|
robot.driveBackRight. setPower(OwO);
|
||||||
|
robot.driveBackLeft. setPower(OwO);
|
||||||
|
}
|
||||||
|
|
||||||
robot.driveFrontLeft.setPower(UwU);
|
|
||||||
robot.driveBackRight. setPower(OwO);
|
|
||||||
robot.driveBackLeft. setPower(OwO);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user