mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Sim GUI: Add option to disable outputs on DS disable
This commit is contained in:
@@ -35,8 +35,12 @@ static void DisplayRelays() {
|
||||
else
|
||||
first = false;
|
||||
|
||||
bool forward = HALSIM_GetRelayForward(i);
|
||||
bool reverse = HALSIM_GetRelayReverse(i);
|
||||
bool forward = false;
|
||||
bool reverse = false;
|
||||
if (!HALSimGui::AreOutputsDisabled()) {
|
||||
reverse = HALSIM_GetRelayReverse(i);
|
||||
forward = HALSIM_GetRelayForward(i);
|
||||
}
|
||||
|
||||
ImGui::Text("Relay[%d]", i);
|
||||
ImGui::SameLine();
|
||||
|
||||
Reference in New Issue
Block a user