Stage 13: Vision Subsystem
The project adds Vision.java beside the finished TeleOp. Vision becomes another owned subsystem; it does not replace CompetitionTeleOp.java.
The simulator keeps CompetitionTeleOp selected as the runnable entry point and carries forward the same DECODE competition robot. Your existing drivetrain, intake, transfer, launcher, and sensor code remains untouched while the camera layer is added.
Your Task
- Map webcam
"Webcam 1"inside Vision and build anAprilTagProcessor. - Build a
VisionPortalwith the camera and processor. - Iterate safely over current
AprilTagDetectionobjects. - Read tag ID and
ftcPosedata for navigation telemetry. - Define multiple OpenCV
Rectregions for left, center, and right analysis. - Classify a stable left, center, or right selection.
- Initialize and update Vision through
RobotHardware. - Close the
VisionPortalthrough the subsystem's cleanup method.
Treat missing detections as a normal state. Your program must not assume a tag is always visible.
Coding Challenge Simulator
Passed every challenge check?
Mark the unit mastered to record every lesson objective and continue directly to the next unit. Your progress will be saved in this browser.
Stuck on this lesson?
Ask about anything on this page. It can see which lesson you have open and which part you are reading.