verticallimit
03-07-2010, 06:15 PM
Hi,
Please a little bit help
This script for Open cockpit is about to drive me crazy.
This is the first attempt to manage Flight Director 1 and Flight Director 2.
They work fine individually, but goes in and locks for each other, so that sometimes the FD1 toggle switch as to be toggled several times to switch in the software. then it works perfectly, but then the second toggle contact is blocked, so it must be toggled several times before it works.
//********** FLIGHT DIRECTOR 1 **************
VAR 1390, NAME CONTROLFD, Link FSUIPC_OUT, Offset $3110, Length 4
VAR 1391, NAME FS_FD1, LINK FSUIPC_OUT, offset $3114, Length 4
VAR 1392, name AP_FD1_SET, Link IOCARD_SW, Input 13, TYPE 1
{
&FS_FD1 = &AP_FD1_SET
&CONTROLFD = 69651
&CONTROLFD = DELAY 0 5
}
//********** TEST TEST TEST TEST TEST**************
VAR 9380, NAME CONTROL, Link FSUIPC_OUT, Offset $3110, Length 4
VAR 9381, NAME FS_PAR, LINK FSUIPC_OUT, offset $3114, Length 4
VAR 9390, name FDL, Link IOCARD_SW, Input 14, TYPE 1
{
&FS_PAR = &FDL
&CONTROL = 69652
&CONTROL = DELAY 0 5
}
//********** TEST TEST TEST TEST TEST**************
I have also tried to use the same variable 1390 and 1391 on both FD1 and FD2, but it gave the same result.
If I can get this to work, I can manage all electrical switches in the cockpit in this way because I have all FSUIPC offset numbers
------------------------------------------------
www.md80project.dk
Please a little bit help
This script for Open cockpit is about to drive me crazy.
This is the first attempt to manage Flight Director 1 and Flight Director 2.
They work fine individually, but goes in and locks for each other, so that sometimes the FD1 toggle switch as to be toggled several times to switch in the software. then it works perfectly, but then the second toggle contact is blocked, so it must be toggled several times before it works.
//********** FLIGHT DIRECTOR 1 **************
VAR 1390, NAME CONTROLFD, Link FSUIPC_OUT, Offset $3110, Length 4
VAR 1391, NAME FS_FD1, LINK FSUIPC_OUT, offset $3114, Length 4
VAR 1392, name AP_FD1_SET, Link IOCARD_SW, Input 13, TYPE 1
{
&FS_FD1 = &AP_FD1_SET
&CONTROLFD = 69651
&CONTROLFD = DELAY 0 5
}
//********** TEST TEST TEST TEST TEST**************
VAR 9380, NAME CONTROL, Link FSUIPC_OUT, Offset $3110, Length 4
VAR 9381, NAME FS_PAR, LINK FSUIPC_OUT, offset $3114, Length 4
VAR 9390, name FDL, Link IOCARD_SW, Input 14, TYPE 1
{
&FS_PAR = &FDL
&CONTROL = 69652
&CONTROL = DELAY 0 5
}
//********** TEST TEST TEST TEST TEST**************
I have also tried to use the same variable 1390 and 1391 on both FD1 and FD2, but it gave the same result.
If I can get this to work, I can manage all electrical switches in the cockpit in this way because I have all FSUIPC offset numbers
------------------------------------------------
www.md80project.dk