mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user