mirror of
https://github.com/TimeCrafters/UltimateGoal.git
synced 2025-12-16 14:02:34 +00:00
a thing
This commit is contained in:
@@ -17,10 +17,23 @@ public class CaydenFirstState extends CyberarmState {
|
|||||||
//This one is set up to repeat every few milliseconds
|
//This one is set up to repeat every few milliseconds
|
||||||
@Override
|
@Override
|
||||||
public void exec() {
|
public void exec() {
|
||||||
robot.launchMotor.setPower(engine.gamepad1.left_stick_y);
|
|
||||||
robot.ringBeltMotor.setPower(engine.gamepad1.right_trigger
|
if (engine.gamepad1.y){
|
||||||
);
|
robot.collectionMotor.setPower(.5);
|
||||||
if (robot.limitSwitch.isPressed()) {
|
}
|
||||||
|
else{
|
||||||
|
robot.collectionMotor.setPower(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
robot.driveFrontRight.setPower(engine.gamepad1.right_stick_y);
|
||||||
|
robot.driveBackRight.setPower(engine.gamepad1.right_stick_y);
|
||||||
|
robot.driveFrontLeft.setPower(engine.gamepad1.left_stick_y);
|
||||||
|
robot.driveBackLeft.setPower(engine.gamepad1.right_stick_y);
|
||||||
|
|
||||||
|
|
||||||
|
robot.ringBeltMotor.setPower(engine.gamepad1.right_trigger);
|
||||||
|
|
||||||
|
if (robot.wobbleTouchSensor.isPressed()) {
|
||||||
robot.launchMotor.setPower(0.5);
|
robot.launchMotor.setPower(0.5);
|
||||||
}else{
|
}else{
|
||||||
robot.launchMotor.setPower(0);
|
robot.launchMotor.setPower(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user