FRCTEAM1474 / 2024RobotCode

Apache License 2.0
0 stars 1 forks source link

Bug: Use of stale vision data #9

Open berkakinci opened 6 months ago

berkakinci commented 6 months ago

Observed: Periodic functions AprilTagVision::periodic and SwerveSubsystem::periodic are called out of order. The end result is 20ms stale vision data. It's also possibly combined with more up-to-date odometry data from swerve. This may cause unexpected behavior.

Expected: Most recent vision data should be used.

From discussion: https://frcteam1474.slack.com/archives/C034KD3L9KN/p1708542501054449