limelight works

This commit is contained in:
2026-01-09 22:49:24 -06:00
parent 37c74fc85f
commit adbe9ad023

View File

@@ -45,11 +45,12 @@ public class LimelightTest extends LinearOpMode {
for (LLResultTypes.FiducialResult fiducial : fiducials) { for (LLResultTypes.FiducialResult fiducial : fiducials) {
int id = fiducial.getFiducialId(); int id = fiducial.getFiducialId();
TELE.addData("ID", id); TELE.addData("ID", id);
TELE.update();
} }
} }
} else if (mode == 2){ } else if (mode == 2){
limelight.pipelineSwitch(4); limelight.pipelineSwitch(2);
LLResult result = limelight.getLatestResult(); LLResult result = limelight.getLatestResult();
if (result != null) { if (result != null) {
if (result.isValid()) { if (result.isValid()) {
@@ -59,7 +60,7 @@ public class LimelightTest extends LinearOpMode {
} }
} }
} else if (mode == 3){ } else if (mode == 3){
limelight.pipelineSwitch(5); limelight.pipelineSwitch(3);
LLResult result = limelight.getLatestResult(); LLResult result = limelight.getLatestResult();
if (result != null) { if (result != null) {
if (result.isValid()) { if (result.isValid()) {