From 197bc6c9796363617658f93e6862c2eac0a7a0fd Mon Sep 17 00:00:00 2001 From: Jonah <47046556+jwbonner@users.noreply.github.com> Date: Fri, 13 Sep 2024 22:59:42 -0400 Subject: [PATCH] Reverse vision target rendering order --- src/hub/controllers/OdometryController.ts | 1 + src/hub/controllers/ThreeDimensionController.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/hub/controllers/OdometryController.ts b/src/hub/controllers/OdometryController.ts index 464a8bb4..85cff895 100644 --- a/src/hub/controllers/OdometryController.ts +++ b/src/hub/controllers/OdometryController.ts @@ -451,6 +451,7 @@ export default class OdometryController implements TabController { } } }); + visionTargets.reverse(); swerveStates.reverse(); // Add object diff --git a/src/hub/controllers/ThreeDimensionController.ts b/src/hub/controllers/ThreeDimensionController.ts index f652e1b7..e18cea04 100644 --- a/src/hub/controllers/ThreeDimensionController.ts +++ b/src/hub/controllers/ThreeDimensionController.ts @@ -410,6 +410,7 @@ export default class ThreeDimensionController implements TabController { }); } let mechanism = mechanisms.length === 0 ? null : mergeMechanismStates(mechanisms); + visionTargets.reverse(); swerveStates.reverse(); // Add object