Im dumb and dont know how to code
This commit is contained in:
parent
833b3f2a7e
commit
04e6e13694
|
|
@ -45,9 +45,9 @@ public final class Constants {
|
|||
|
||||
public static final String FRONT_CAMERA_NAME = "limelight-front";
|
||||
public static final int FRONT_LOCALIZATION_PIPELINE_NUMBER = 0;
|
||||
public static final double[] BLUE_ZONE_COOR = new double[]{1};
|
||||
public static final double[] RED_ZONE_COOR = new double[]{1};
|
||||
public static final double[] NEUTRAL_ZONE_COOR = new double[]{1};
|
||||
public static final double[] BLUE_ZONE_COOR = new double[]{.04};
|
||||
public static final double[] RED_ZONE_COOR = new double[]{12};
|
||||
public static final double[] NEUTRAL_ZONE_COOR = new double[]{4.5};
|
||||
}
|
||||
|
||||
public static class AdvantageKitConstants {
|
||||
|
|
@ -143,7 +143,7 @@ public final class Constants {
|
|||
public static final double DEFLECTOR_STORED_ANGLE = 0;
|
||||
public static final double DEFLECTOR_SET_ANGLE1 = 100;
|
||||
public static final double DEFLECTOR_SET_ANGLE2 = 200;
|
||||
public static final double DEFLECTOR_SET_ANGLE3 = 200; // Return to 300 once hood is fixed
|
||||
public static final double DEFLECTOR_SET_ANGLE3 = 300; // Return to 300 once hood is fixed
|
||||
public static final double DEFLECTOR_SERVO_RATIO = 1.0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,12 +20,13 @@ public class ZoneCheck extends Command {
|
|||
Neutral;
|
||||
}
|
||||
|
||||
public ZoneCheck() {
|
||||
getBotPose();
|
||||
@Override
|
||||
public void initialize() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
public void execute() {
|
||||
getZone();
|
||||
DriverStation.getAlliance().ifPresent((aliance) -> {
|
||||
if (aliance == Alliance.Blue) {
|
||||
switch (zone) {
|
||||
|
|
@ -33,19 +34,15 @@ public class ZoneCheck extends Command {
|
|||
System.out.println("Im Home");
|
||||
case Neutral:
|
||||
System.out.println("Uhhhhhhhh not red");
|
||||
;
|
||||
default:
|
||||
System.out.println("BOOOOO, BOOOO RED");
|
||||
;
|
||||
}
|
||||
} else {
|
||||
switch (zone) {
|
||||
case Blue:
|
||||
System.out.println("Screw Blue");
|
||||
;
|
||||
case Neutral:
|
||||
System.out.println("Uhhhhhhhh not red");
|
||||
;
|
||||
default:
|
||||
System.out.println("Im Home");
|
||||
}
|
||||
|
|
@ -53,11 +50,6 @@ public class ZoneCheck extends Command {
|
|||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFinished() {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue