mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Fixes https://github.com/wpilibsuite/allwpilib/issues/8284. If we have vision updates at the time of the `Reset*` call, we can correct the translation/rotation of the new odometry pose by adding a new vision update where: - `ResetTranslation`: the translation is hard-coded to the new translation, and the rotation components are set to those of the latest vision update (prior to clearing the map). - `ResetRotation`: the rotation is hard-coded to the new rotation, and the translation components are set to those of the latest vision update (prior to clearing the map).