Hi!
I’m looking for an event ID or a SimVar to start a battery on the A320 Neo. I tried BATTERY1_SET and MASTER_BATTERY_SET but they do not have impact on the push buttons. Any idea on how to mock the click on one of them?
Hi!
I’m looking for an event ID or a SimVar to start a battery on the A320 Neo. I tried BATTERY1_SET and MASTER_BATTERY_SET but they do not have impact on the push buttons. Any idea on how to mock the click on one of them?
Found out that the MASTER_BATTERY_ON works on the BehaviourDebug window but the battery index has to be set in the second parameter, which does not meet the SDK documentation where there is only one parameter with index 0.
I tried to do the same within SimConnect but nothing happens. I see that the command is received, there is no exception but nothing on the simumator.
Some of the SimConnect event IDs are inhibited in the A320. When the button is push, the simulator use the Electrical_Battery_1 preset (Electrical_Inputs.xml) to toggle the master battery and connect electrical buses depending on the position of the push button. This preset is registered as an InputEvent and SimConnect allows us to update the value of this input event via SimConnect_SetInputEvent.
How don’t know exactly how it works with the click but the preset has a Set method, I guess called when using SimConnect_SetInputEvent which, when set to 1, triggers the master battery toggle and the bus connection.
First thing to do is to call SimConnect_EnumerateInputEvents to get the list all available InputEvents, get the hash of the one you want to set and then use SimConnect_SetInputEvent with the right value to do what you need.