FRCTeam3044 / 2024SwerveBase

Swerve Code for 2024 - Crescendo
Other
1 stars 0 forks source link

Vision deviations #23

Open DavidDePauw1 opened 9 months ago

DavidDePauw1 commented 9 months ago

https://github.com/FRCTeam3044/2024SwerveBase/blob/ceddd96198dd04b30f3d4d0b13decdc8b7fb3c9c/src/main/java/frc/robot/Vision.java#L114

@Alex-idk @nab138 please review this code, it seemed like there was a lot of confusion around how this works yesterday (this is why it's a bad idea to just copy code you don't understand, so now it's time to fix that mistake). This is where the vision measurements std is calculated, please get familiar with how this relates to the constants that are set in the vision constants file, and what impact this will have on how vision estimates are incorporated in to our pose estimate.