Im dumb and dont know how to code

This commit is contained in:
TheRealGrayden 2026-04-11 10:24:08 -04:00
parent 833b3f2a7e
commit 04e6e13694
2 changed files with 8 additions and 16 deletions

View File

@ -45,9 +45,9 @@ public final class Constants {
public static final String FRONT_CAMERA_NAME = "limelight-front"; public static final String FRONT_CAMERA_NAME = "limelight-front";
public static final int FRONT_LOCALIZATION_PIPELINE_NUMBER = 0; public static final int FRONT_LOCALIZATION_PIPELINE_NUMBER = 0;
public static final double[] BLUE_ZONE_COOR = new double[]{1}; public static final double[] BLUE_ZONE_COOR = new double[]{.04};
public static final double[] RED_ZONE_COOR = new double[]{1}; public static final double[] RED_ZONE_COOR = new double[]{12};
public static final double[] NEUTRAL_ZONE_COOR = new double[]{1}; public static final double[] NEUTRAL_ZONE_COOR = new double[]{4.5};
} }
public static class AdvantageKitConstants { 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_STORED_ANGLE = 0;
public static final double DEFLECTOR_SET_ANGLE1 = 100; public static final double DEFLECTOR_SET_ANGLE1 = 100;
public static final double DEFLECTOR_SET_ANGLE2 = 200; 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; public static final double DEFLECTOR_SERVO_RATIO = 1.0;
} }

View File

@ -20,12 +20,13 @@ public class ZoneCheck extends Command {
Neutral; Neutral;
} }
public ZoneCheck() { @Override
getBotPose(); public void initialize() {
} }
@Override @Override
public void initialize() { public void execute() {
getZone();
DriverStation.getAlliance().ifPresent((aliance) -> { DriverStation.getAlliance().ifPresent((aliance) -> {
if (aliance == Alliance.Blue) { if (aliance == Alliance.Blue) {
switch (zone) { switch (zone) {
@ -33,19 +34,15 @@ public class ZoneCheck extends Command {
System.out.println("Im Home"); System.out.println("Im Home");
case Neutral: case Neutral:
System.out.println("Uhhhhhhhh not red"); System.out.println("Uhhhhhhhh not red");
;
default: default:
System.out.println("BOOOOO, BOOOO RED"); System.out.println("BOOOOO, BOOOO RED");
;
} }
} else { } else {
switch (zone) { switch (zone) {
case Blue: case Blue:
System.out.println("Screw Blue"); System.out.println("Screw Blue");
;
case Neutral: case Neutral:
System.out.println("Uhhhhhhhh not red"); System.out.println("Uhhhhhhhh not red");
;
default: default:
System.out.println("Im Home"); System.out.println("Im Home");
} }
@ -53,11 +50,6 @@ public class ZoneCheck extends Command {
}); });
} }
@Override
public void execute() {
}
@Override @Override
public boolean isFinished() { public boolean isFinished() {
return false; return false;