From ca92ef89d3133b2b489ed3b0ceeb1f38d342a74a Mon Sep 17 00:00:00 2001 From: Wispy <101812473+WispySparks@users.noreply.github.com> Date: Fri, 21 Jun 2024 22:56:23 -0500 Subject: [PATCH] [sim] Don't send joystick data during auto (#6732) Testing on a Rio showed that the joystick inputs are not zeroed, they just don't update. --- simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp b/simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp index 5639c147c2..119075642d 100644 --- a/simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp +++ b/simulation/halsim_gui/src/main/native/cpp/DriverStationGui.cpp @@ -1131,7 +1131,7 @@ static void DriverStationExecute() { } // Update HAL - if (isAttached) { + if (isAttached && !isAuto) { for (int i = 0, end = gRobotJoysticks.size(); i < end && i < HAL_kMaxJoysticks; ++i) { gRobotJoysticks[i].SetHAL(i);