Skip to content

Commit

Permalink
Changed Positions in auto and added manual intake arm to gamepad 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Smith-42 committed Jan 12, 2025
1 parent 1789032 commit 4272ff0
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package org.firstinspires.ftc.teamcode.ftc16072.OpModes;

import com.qualcomm.robotcore.eventloop.opmode.Autonomous;

@Autonomous
public class PushintoNetandAscendAuto extends QQOpMode{
private double step = 0;

public void init(){
super.init();
robot.otos.setOtosPosition(-61.5,0,-90);
}
public void loop(){
super.loop();
if(step == 0){
boolean donedriving = nav.driveToPositionIN(-58,24,0);
if(donedriving){
step = 1;
}
}else if(step == 1){
boolean doneDriving = nav.driveToPositionIN(-28,24,0);
if(doneDriving){
step = 2;
}
}else if(step == 2){
boolean doneDriving = nav.driveToPositionIN(-24,10,0);
if(doneDriving){
step = 3;
}
} else if (step == 3) {
boolean doneDriving = nav.driveToPositionIN(-24,10,-90);
if (doneDriving){
step = 4;
robot.scoreArm.goToPlace();
}
}

}
}

0 comments on commit 4272ff0

Please sign in to comment.