What I don't understand is how my SIOC script sends or receives "flight data" from NGX. In my script, I see alot of lines to link variables to IOCARD_SW and IOCARD_OUTPUT. I understand what these do. What I don't see are link variables to FSUIPC offsets. My understanding is these offsets is how SIOC read NGX data and relays that to my Opencockpits modules (such as COM 1 active frequency). And conversely, writing new data to NGX based on the knobs or switches I set on my Opencockpit hardware (such as MCP altitude). I'm expecting lines of variable definition with "FSUIPC_IN" and "FSUIPC_OUT" in my script, but I don't - not one line.
The SIOC code below is a snippet from my script related to COM1. The comment says this code reads the active COM1 frequency from NGX. I'm not understanding where in this snippet the actual command to queries NGX for COM1 frequency is.
What is it that I'm missing? Thanks in advance.
Code: Select all
Var 1800, name AC_COM1_BCD, static // read active COM1 display from NGX
{
&AC_COM1 = FROMBCD &AC_COM1_BCD // convert to decimal
IF &COM1_Power_ON = 1
{
&D_AC_COM1 = &AC_COM1 + 10000 // display new active COM1 frequency leadin
}
}