lasseh
08-02-2012, 09:06 AM
Hello. Hope you're all enjoying the summer out there! :)
I'm trying to get an annunciator to illuminate when my aircraft is capturing a localiser, and so far I've learned that the offsets I'm going to use are 0C4A bit 1 for the localiser tuned in, and then 0C48 to adjust when the localiser is actually captured. But which bit-number am I going to use for the needle?
I've tried to write a script here:
---------------------------------------------------------------------
Var 0001, name loc_tuned, Link FSUIPC_INOUT, Offset $0C4A, Length 1
{
IF &loc_tuned = 1
{
&loc_tuned_ind = 1
}
IF &loc_tuned = 0
{
&loc_tuned_ind = 0
}
}
Var 0002, name loc_tuned_ind, Link IOCARD_OUT, Device 1, Output 41
--------------------------------------------------------------------
This light up the LED when the localiser is tuned in at the NAV1 radio as anticipated. But how do I implement the needle offset, so that the LED will only illuminate when the localiser is tuned in, AND captured?
Thanks!
Lasse
I'm trying to get an annunciator to illuminate when my aircraft is capturing a localiser, and so far I've learned that the offsets I'm going to use are 0C4A bit 1 for the localiser tuned in, and then 0C48 to adjust when the localiser is actually captured. But which bit-number am I going to use for the needle?
I've tried to write a script here:
---------------------------------------------------------------------
Var 0001, name loc_tuned, Link FSUIPC_INOUT, Offset $0C4A, Length 1
{
IF &loc_tuned = 1
{
&loc_tuned_ind = 1
}
IF &loc_tuned = 0
{
&loc_tuned_ind = 0
}
}
Var 0002, name loc_tuned_ind, Link IOCARD_OUT, Device 1, Output 41
--------------------------------------------------------------------
This light up the LED when the localiser is tuned in at the NAV1 radio as anticipated. But how do I implement the needle offset, so that the LED will only illuminate when the localiser is tuned in, AND captured?
Thanks!
Lasse