teleop ground logic
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package org.firstinspires.ftc.teamcode.constants;
|
||||
|
||||
import com.acmerobotics.dashboard.config.Config;
|
||||
|
||||
@Config
|
||||
public class ShooterVars {
|
||||
public static double turret_GearRatio = 0.9974;
|
||||
|
||||
public static double turret_Range = 355;
|
||||
}
|
||||
@@ -43,8 +43,7 @@ public class Intake implements Subsystem {
|
||||
}
|
||||
|
||||
public void intakeMinPower(){
|
||||
intakePower = 0.5;
|
||||
intakeState = 1;
|
||||
intakeState = 2;
|
||||
}
|
||||
|
||||
public void intake(){
|
||||
@@ -57,7 +56,7 @@ public class Intake implements Subsystem {
|
||||
|
||||
|
||||
public void stop(){
|
||||
intakeState =-1;
|
||||
intakeState =0;
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +69,8 @@ public class Intake implements Subsystem {
|
||||
intake.setPower(intakePower);
|
||||
} else if (intakeState == -1){
|
||||
intake.setPower(-intakePower);
|
||||
} else if (intakeState == 2){
|
||||
intake.setPower(intakePower);
|
||||
}else {
|
||||
intake.setPower(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user