Path Pingu
Object that manages scoring positions but does not store them directly. Instead, it provides methods to retrieve the closest scoring position.
Functions
Adds any number of coral scoring positions to the list of potential scoring positions for L4.
Adds any number of coral scoring positions to the list of potential scoring positions for not L4.
Clears the list of potential scoring positions.
Finds the closest scoring position to the robot's current position. Starts by finding the closest april tag to the robot's current position. Based on the direction passed in, it returns the corresponding scoring position. Then it path finds to that position (hopefully).
Finds the closest scoring position to the robot's current position. Starts by finding the closest april tag to the robot's current position. Based on the direction passed in, it returns the corresponding scoring position.