FRC-Sonic-Squirrels / 2023-Robot-Code

2023 FRC Season robot code for team 2930, the Sonic Squirrels
MIT License
8 stars 0 forks source link

better validTarget() method #44

Closed LuminousLlama closed 1 year ago

LuminousLlama commented 1 year ago

make this method also check to make sure the target is between id 0 - 8

If its ID is past 8 its not on the game field and is most likely a bug and should not be counted image

In Vision.java

LuminousLlama commented 1 year ago

nevermind the layout.getTagPose(target.getFiducialId()).isPresent(); handles this case