Skip to content

Conversation

@JeffreyL-3
Copy link

Motivation

  • Integrate the Limelight3A vision sensor into the main TeleOp flow so the robot can read AprilTag fiducials on demand.
  • Ensure the Limelight polling lifecycle is started on OpMode start and stopped cleanly on OpMode stop.

Description

  • Added imports for LLResult, LLResultTypes, and Limelight3A and a private Limelight3A limelight field in MainTeleOp.
  • Initialize the Limelight in onStartButtonPressed() with hardwareMap.get(Limelight3A.class, "limelight"), call pipelineSwitch(0), and start().
  • Bound gamepad1.a() so on press it calls LLResult result = limelight.getLatestResult(), checks result != null && result.isValid() && !result.getFiducialResults().isEmpty(), and logs the first fiducial's getFiducialId() via telemetry.addData("AprilTag ID", id) followed by telemetry.update().
  • On OpMode stop, call limelight.stop() (guarded by a null check) to end Limelight polling.

Testing

  • No automated tests were run for this change.
  • Modified file: TeamCode/src/main/java/org/firstinspires/ftc/teamcode/MainTeleOp.java.

Codex Task

@DDbrother9999
Copy link

what is going on here 💀

@DDbrother9999 DDbrother9999 self-requested a review February 9, 2026 02:05
@JeffreyL-3
Copy link
Author

JeffreyL-3 commented Feb 9, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants