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:
@@ -31,7 +31,10 @@ static void DisplaySolenoids() {
|
||||
for (int j = 0; j < numChannels; ++j) {
|
||||
if (HALSIM_GetPCMSolenoidInitialized(i, j)) {
|
||||
anyInit = true;
|
||||
channels[j] = HALSIM_GetPCMSolenoidOutput(i, j) ? 1 : -1;
|
||||
channels[j] = (!HALSimGui::AreOutputsDisabled() &&
|
||||
HALSIM_GetPCMSolenoidOutput(i, j))
|
||||
? 1
|
||||
: -1;
|
||||
} else {
|
||||
channels[j] = -2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user