Skip to content

Commit 0b1b8e3

Browse files
committed
details
1 parent 4e56d1f commit 0b1b8e3

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

docs/section-7/limelight.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ Now take a look at [Limelight.java](https://github.com/DeepBlueRobotics/RobotCod
7474

7575
3. When `steeringAssist()` does not see a bounding box, it turns in the direction of the last `tx` value. This is to make sure that if it overshoots or if the target changes direction, it will take the shortest path to try to face the target again.
7676

77-
Some notes to keep in mind:
78-
- Make sure you keep stay consistent with units
79-
8077
The programming team had some fun with this code during the 2019-2020 Pre-Season:
8178

8279
<iframe width="560" height="315" src="https://www.youtube.com/embed/TjksUg227QQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
@@ -85,4 +82,16 @@ The programming team had some fun with this code during the 2019-2020 Pre-Season
8582

8683
In 2024, we used Limelight to autoalign then intake the game piece. Check out [this code](https://github.com/DeepBlueRobotics/RobotCode2024/blob/master/src/main/java/org/carlmontrobotics/commands/AutoMATICALLYGetNote.java) to see how we did it!
8784

88-
TODO: neural network pipeline explanation
85+
If it's too long to read, basically what it does is:
86+
1. Change the drivetrain to robot oriented and turn on the intake
87+
2. Retrieves three offsets: forward, strafe, and angle
88+
3. It ends when there is a game piece inside the robot
89+
4. The drivetrain is back to field oriented so it is driveable for the driver and the intake is stopped
90+
91+
Now go back and read it again :)
92+
93+
94+
Some notes to keep in mind when coding:
95+
- Make sure you keep stay consistent with units
96+
- Remember to store the name of your limelight(s) in constants
97+
- In commands, don't make Limelight a requirement so that it can be used by multiple commands at the same time

0 commit comments

Comments
 (0)