[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.
This commit is contained in:
Wispy
2024-06-21 22:56:23 -05:00
committed by GitHub
parent b8c2571638
commit ca92ef89d3

View File

@@ -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);