Less conditionally remap channels in target mapping
Change-Id: I01cda2cc53419391e582730f362e5417fbaebaa7
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/y2024/vision/target_mapping.cc b/y2024/vision/target_mapping.cc
index 269b1b9..5681580 100644
--- a/y2024/vision/target_mapping.cc
+++ b/y2024/vision/target_mapping.cc
@@ -170,9 +170,7 @@
reader_->RemapLoggedChannel("/orin1/constants", "y2024.Constants");
reader_->RemapLoggedChannel("/imu/constants", "y2024.Constants");
// If it's Box of Orins, don't remap roborio constants
- if (FLAGS_team_number == 7971) {
- reader_->RemapLoggedChannel("/roborio/constants", "y2024.Constants");
- }
+ reader_->MaybeRemapLoggedChannel<Constants>("/roborio/constants");
reader_->Register();
SendSimulationConstants(reader_->event_loop_factory(), FLAGS_team_number,