Swerve Setup Guide 2025 Help

Vision

Similar to focusing the template on CTR Electronics or vision code focusing on using LimeLights. PhotonVision will still work but code structure should change slightly if that is your main method (no need for any MT2 inputs).

Inside of code this year we have three different strategies added (and a None option). Bellow is list and what data they use

  1. Mechanical Advantage (Recommended)

    1. Number of tags (More tags = More trust)

    2. Average Distance (Closer = More trust)

  2. Cheesy Poofs (Being added)

    1. Multi-tag or Single-tag (two and three tags are trusted the same)

    2. Average Area of Tags (based on area of tags seen)

    3. MT1 or MT2 (MT2 is trusted more than MT1)

  3. Beta - Currently being developed

    1. Uses all information from Cheesy Poofs but scales based on STD Devs provided by LL. This should ideally make the formula more robust for a new game instead of having hard coded values

Code methods can be found inside VisionUtil.java. This current setup allows us to quickly change existing or add new custom methods. We then can easily run changes in Replay to see how changes would have effected vision during the match.

Last modified: 19 November 2024