midtownrobotics / 2024-Offseason

Other
0 stars 0 forks source link

April Tags Helper Class #62

Closed Mysterium422 closed 1 week ago

Mysterium422 commented 2 weeks ago

Write a helper enum to easily get April Tag IDs from a more human readable form such as

AprilTag.SPEAKER_CENTER.getId(), getBlueId(), getRedId()

Mysterium422 commented 1 week ago

Screenshot 2024-10-11 at 4 52 25 PM ^ April Tag Map (from the FRC Game Manul).

This should be an enum, names such as SPEAKER_CENTER, SPEAKER_OFFSET, STAGE_CENTER, etc. Each of the enum values will need to take 2 ids, a red id and a blue id.

The enum should have 3 methods. getRedId and getBlueId which returns that color's id, and getId which returns the id based on the Robot's alliance.