[sim] Sim GUI DS: Add "Disconnected" state and start in it (#6218)

The default state for the DS in the simulated HAL is changed to disconnected.

The FMS view is now only editable in DS disconnected state.

This enables more robot and field-like testing of robot code, as the
alliance color and other parameters start in invalid states and are
only set when the DS connects.
This commit is contained in:
Peter Johnson
2024-01-20 21:10:02 -08:00
committed by GitHub
parent e408f3ad27
commit 3928ed5647
9 changed files with 105 additions and 53 deletions

View File

@@ -382,6 +382,7 @@ void NewDriverStationData() {
}
lastGiven = given;
SimDriverStationData->dsAttached = true;
driverStation->newDataEvents.Wakeup();
SimDriverStationData->CallNewDataCallbacks();
}