You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/section-7/limelight.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,9 +74,6 @@ Now take a look at [Limelight.java](https://github.com/DeepBlueRobotics/RobotCod
74
74
75
75
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.
76
76
77
-
Some notes to keep in mind:
78
-
- Make sure you keep stay consistent with units
79
-
80
77
The programming team had some fun with this code during the 2019-2020 Pre-Season:
@@ -85,4 +82,16 @@ The programming team had some fun with this code during the 2019-2020 Pre-Season
85
82
86
83
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!
87
84
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