This project contains the code for team 1902's 2025 FRC robot "WaterPig". The code for our robot is written in Java and uses several external libraries including WPILib, REVLib, PathPlanner, PhotonVision, YAGSL, MapleSim, and AdvantageKit. We also use Elastic Dashboard and AdvantageScope as for viewing live and logged robot data and telemetry. All robot code is organzied in the standard command-based layout.
-
Object Detection
Our robot is capable of autonomously detecting and collecting game pieces from the floor during both the Autonomous and Teleoperated periods. This functionality is powered by an Orange Pi 5 running Photonvisons object detection pipeline, utilizing a YOLOv11 model trained in-house for the specific task of identifying game pieces on the field.
-
Autonomous Pathing and Alignment
We developed a simple, PID-based pathing system that enables fast and precise alignment to preset waypoints. This allows the robot to execute fully autonomous cycles by snapping to either the nearest calculated waypoint or a predefined path—effective in both Autonomous and Teleoperated modes allowing the robot to precisely align with the scoring elements.
-
AdvantageScope and MapleSim Simulation
To support the development and testing of both robot code and autonomous routines, our team implemented basic simulation capabilities using AdvantageScope as the primary simulation environment and MapleSim for simple physics-based simulation of robot interactions with the simulated field. This approach allowed us to begin testing code before the robot was fully manufactured and safely develop autonomous routines without risking robot or field damage.
We also use AdvantageScope to review past matches logged to a USB via AdvantageKit. This includes vision estimates, sensor values, and motor readings. It has been very useful for debugging issues that occur during matches.
FRC Team 1902, Exploding Bacon, is a high school robotics team based in Orlando, Florida. We are a community-driven team that focuses on STEM education and outreach. Our team is dedicated to creating a positive impact in our community through the power of robotics. We run a variety of programs, outreaches, and more, so feel free to visit us on our website: explodingbacon.com
Contributions are always welcome! If you find a bug in our code, or if you have an idea for a new feature, please open an issue on this repository. If you'd like to contribute code, please fork this repository and submit a pull request.
This code was written by:
This code was reviewed by:
We would also like to thank our sponsors, team members, parents and mentors for their help and support.
