Every time I started a new TE/Campaign I was very annoyed
that my switches in my physical pit were not in-line
with the current setting in BMS.
Over the years I made several attempts to synchronize it,
but never succeeded.
I finally managed to solve this problem and believe me it ROCKS!
I found a bit in the SharedMem which can be used to reliably detect
a new start or re-start of the game.
Init = 0x08, // HSI_FLAG_INIT
This bit does a 1-0-1 transition at the start of every new TE.
In my PHCC Interface program I read this bit and after the
transition I request the current status of all my switch settings
from the PHCC system.
All switch positions can be read in the 128-byte keymatrix map.
I'm currently synchronizing all switches of my HUD panel but others
will follow as my pit evolves.
To make it visible to me, that my program is currently OVERWRITING
switch positions, I light the lamp OVRD in the 2-module left eyebrow indicator.
Because I always fly in HUD-only view with a FOV-setting of 80 Degrees
I'm shooting the necessary keystrokes into BMS to get that setting
done as well. (Watch on the fly monitor how the setting changes)
After all settings are completed the OVRD lamp will go off and BMS can take over
(reset FREEZE Mode which I have set at the beginning of the syncing routine)
Watch the immediate update of the TWP lights as soon as the OVRD lamp goes off.