1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-12-28 07:11:59 +00:00

Fix avionics power on issue for Cessna 208B and Cessna 172

This commit is contained in:
Stanley 2022-07-01 12:45:28 -04:00
parent 5a6757f267
commit a1fc7372d6
2 changed files with 4 additions and 1 deletions

View file

@ -4,6 +4,7 @@
{
KEY_MASTER_BATTERY_SET,
KEY_ALTERNATOR_SET,
KEY_TOGGLE_AVIONICS_MASTER
KEY_AVIONICS_MASTER_SET, // must have this dummy event register first for "TOGGLE_AVIONICS_MASTER" to work, weird!
KEY_TOGGLE_AVIONICS_MASTER,
}
}

View file

@ -68,6 +68,7 @@ namespace MSFSPopoutPanelManager.Provider
_simConnector.TransmitActionEvent(ActionEvent.KEY_MASTER_BATTERY_SET, 1);
Thread.Sleep(100);
_simConnector.TransmitActionEvent(ActionEvent.KEY_TOGGLE_AVIONICS_MASTER, 1);
Thread.Sleep(100);
}
}
@ -78,6 +79,7 @@ namespace MSFSPopoutPanelManager.Provider
_simConnector.TransmitActionEvent(ActionEvent.KEY_TOGGLE_AVIONICS_MASTER, 1);
Thread.Sleep(100);
_simConnector.TransmitActionEvent(ActionEvent.KEY_MASTER_BATTERY_SET, 0);
Thread.Sleep(100);
_isPowerOnForPopOut = false;
}