-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Named commands
Named commands are used in PathPlanner autos and paths to call robot code. Here is the list of named commands
ScoreL1- Score coral in L1 (aka "trough")ScoreL2- Score coral in L2ScoreL3- Score coral in L3BumpAlgaeLow- Bump algae off of the lower levelBumpAlgaeHigh- Bump algae off of the higher levelIntakeCoral- Intake coral (from the coral station)
Naming scheme
[a-zA-Z-]+-[1-9a-c]{4}(-A[1-6])*
[a-zA-z-]+ - name of path; describes what it does or where it starts eg. mid
[1-9a-c]{4} - number of coral scored at each level (starting at L1) in hexadecimal eg. 12C -> 1 L1, 2 L2, 12 L3, and 0 L4.
(-A[1-6])* - which pieces of algae are taken off of the reef. From the same perspective as the drawings, the rightmost one is A1, and they are numbered incrementally counter-clockwise. eg. -A1-A2-A6 -> algae 1 (rightmost algae), algae 2 (algae above rightmost), and algae 6 (algae below rightmost)
Full example
mid-do-everything-2813-A2-A5-A4
name: mid-do-everything
2 scores in L1
8 scores in L2
1 scores in L3
3 scores L4
takes algae numbers 2, 4, and 5 off of the reef