Add joystick_republish to y2024_swerve

Change-Id: I6e285e7371205b5d429ca0ac013e4b8e41eeef4b
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/frc971/wpilib/BUILD b/frc971/wpilib/BUILD
index 89bdcbf..461eb4a 100644
--- a/frc971/wpilib/BUILD
+++ b/frc971/wpilib/BUILD
@@ -557,3 +557,20 @@
         "//aos/events:shm_event_loop",
     ],
 )
+
+cc_binary(
+    name = "joystick_republish",
+    srcs = [
+        "joystick_republish.cc",
+    ],
+    target_compatible_with = ["@platforms//os:linux"],
+    visibility = ["//visibility:public"],
+    deps = [
+        "//aos:configuration",
+        "//aos:flatbuffer_merge",
+        "//aos:init",
+        "//aos/events:shm_event_loop",
+        "//frc971/input:joystick_state_fbs",
+        "@com_github_google_glog//:glog",
+    ],
+)
diff --git a/y2024/joystick_republish.cc b/frc971/wpilib/joystick_republish.cc
similarity index 100%
rename from y2024/joystick_republish.cc
rename to frc971/wpilib/joystick_republish.cc
diff --git a/y2024/BUILD b/y2024/BUILD
index 6cb7156..8082caf 100644
--- a/y2024/BUILD
+++ b/y2024/BUILD
@@ -47,7 +47,7 @@
 robot_downloader(
     name = "orin_download",
     binaries = [
-        ":joystick_republish",
+        "//frc971/wpilib:joystick_republish",
         "//aos/events:aos_timing_report_streamer",
         "//aos/events/logging:log_cat",
         "//aos:aos_jitter",
@@ -309,23 +309,6 @@
     ],
 )
 
-cc_binary(
-    name = "joystick_republish",
-    srcs = [
-        "joystick_republish.cc",
-    ],
-    target_compatible_with = ["@platforms//os:linux"],
-    visibility = ["//visibility:public"],
-    deps = [
-        "//aos:configuration",
-        "//aos:flatbuffer_merge",
-        "//aos:init",
-        "//aos/events:shm_event_loop",
-        "//frc971/input:joystick_state_fbs",
-        "@com_github_google_glog//:glog",
-    ],
-)
-
 py_library(
     name = "python_init",
     srcs = ["__init__.py"],
diff --git a/y2024_swerve/BUILD b/y2024_swerve/BUILD
index 0a91e3a..480ef72 100644
--- a/y2024_swerve/BUILD
+++ b/y2024_swerve/BUILD
@@ -69,6 +69,7 @@
         "//frc971/imu_fdcan:can_translator",
         "//frc971/imu_fdcan:dual_imu_blender",
         "//frc971/can_logger",
+        "//frc971/wpilib:joystick_republish",
         "//aos/network:message_bridge_client",
         "//aos/network:message_bridge_server",
         "//aos/network:web_proxy_main",