Cockpitbuilders.com

Lounge => Video Links => Topic started by: dc8flightdeck on March 07, 2013, 06:02:44 AM

Title: SIOC script for the ADI fail flag
Post by: dc8flightdeck on March 07, 2013, 06:02:44 AM
This is tested by me with USB Outputs, feel free to use!  ;)
Justin

Var 0161, name ADI, Link FSUIPC_INOUT, Offset $3BD9, Length 1     // Panel Failure modes
{
&ADIflag = TESTBIT &ADI,0 //  Attitude Indicator
}
Var 0162, name ADIflag, Link IOCARD_OUT, Output 8     //  ADI Flag
Title: Re: SIOC script for the ADI fail flag
Post by: dc8flightdeck on March 07, 2013, 07:03:41 AM
On a side note, teh FSUIPC doc has the length listed as 18 which gave me an error message in SIOC Config. I changed it to a 1 which worked nicely.
Title: Re: SIOC script for the ADI fail flag
Post by: fordgt40 on March 07, 2013, 08:08:16 AM
Justin

I think it is 18 entries each of one byte for partial panel failure, as listed in the docs. If we suggest FSUIPC has a doc error, then Pete Dowson will magically appear here very quickly :) I think he has a search engine to detect any ref to FSUIPC anywhere  :)

Regards

David