Results 1 to 1 of 1
Thread: F.O. tuning ATC--Transponder
-
05-02-2018, 01:04 AM #1
F.O. tuning ATC--Transponder
I have the code for allowing the frequency which is changed on the Airbus RMP to be transferred to the Open Cockpit radios ok, using Radio_Airbus_RMP_slave1.txt. which adds the following script:
Var 250, Link FSUIPC_INOUT, name fcom1, Offset $034E, Length 2 // COM1 Active
// **** For Sync with FS
{
l0 = frombcd &fcom1
l0 = l0 * 10
&act_com1 = l0 + 100000
if &enc_com1 = 1
{
&id2_com1 = &act_com1
}
}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//I also have the ATC transponder working with the following code:
Var 0000, Value 0
{
&D_ACTIVE = 1200
&DIG_POS_STATUS = 1
&DIS_ATC = 1
&DIS_1 = 1
&DIS_2 = 0
}
Var 0010, name FS_XPDER_ID, Link FSUIPC_INOUT, Offset $0354, Length 2
//Var 0015, name IVAP_SB_MODE, Link FSUIPC_INOUT, Offset $7B91, Length 1
//Var 0020, name IVAP_SB_IDENT, Link FSUIPC_INOUT, Offset $7B93, Length 1
//Var 0025, name XPDER_FAIL, Link FSUIPC_INOUT, Offset $0B6F, Length 1
{
IF &XPDER_FAIL = 1
{
&D_FAIL = -999997
&LED_FAIL = 1
}
ELSE
{
&D_FAIL = -999999
&LED_FAIL = 0
}
}
Var 0002, name DIG_POS_STATUS
Var 0050, name DIG_1_SUB, Value 0
{
CALL &DIGITS_SUB
}
Var 0051, name DIG_2_SUB, Value 0
{
CALL &DIGITS_SUB
}
Var 0052, name DIG_3_SUB, Value 2
{
CALL &DIGITS_SUB
}
Var 0053, name DIG_4_SUB, Value 1
{
CALL &DIGITS_SUB
}
Var 0100, name D_ACTIVE, Link IOCARD_DISPLAY, Device 16, Digit 0, Numbers 4
Var 0102, name D_FAIL, Link IOCARD_DISPLAY, Device 16, Digit 4, Numbers 1
Var 0104, name D_aBRIGHT, Link IOCARD_DISPLAY, Device 16, Digit 16, Numbers 3
Var 0200, name DIS_ATC, Link IOCARD_OUT, Device 16, Output 20
Var 0202, name DIS_1, Link IOCARD_OUT, Device 16, Output 21
Var 0204, name DIS_2, Link IOCARD_OUT, Device 16, Output 22
Var 0206, name LED_FAIL, Link IOCARD_OUT, Device 16, Output 23
Var 0302, name E_LEFT, Link IOCARD_ENCODER, Device 16, Input 5, Aceleration 1, Type 2
{
L0 = &E_LEFT * 1
&DIG_POS_STATUS = ROTATE 1 ,4 ,L0
}
Var 0300, name E_RIGHT, Link IOCARD_ENCODER, Device 16, Input 10, Aceleration 1, Type 2
{
IF &DIG_POS_STATUS = 1
{
L0 = &E_RIGHT * -1
&DIG_1_SUB = ROTATE 0 ,7 ,L0
}
IF &DIG_POS_STATUS = 2
{
L0 = &E_RIGHT * -1
&DIG_2_SUB = ROTATE 0 ,7 ,L0
}
IF &DIG_POS_STATUS = 3
{
L0 = &E_RIGHT * -1
&DIG_3_SUB = ROTATE 0 ,7 ,L0
}
IF &DIG_POS_STATUS = 4
{
L0 = &E_RIGHT * -1
&DIG_4_SUB = ROTATE 0 ,7 ,L0
}
}
Var 0400, name I_IDENT, Link IOCARD_SW, Device 16, Input 12
{
IF &I_IDENT = 1
{
// &IVAP_SB_IDENT = 1
}
}
Var 0404, name I_XPNDR, Link IOCARD_SW, Device 16, Input 7
{
IF &I_XPNDR = 1
{
&DIS_1 = 0
&DIS_2 = 1
}
ELSE
{
&DIS_1 = 1
&DIS_2 = 0
}
}
Var 0406, name STANDBY, Link IOCARD_SW, Device 16, Input 0
{
IF &STANDBY = 1
{
// &IVAP_SB_MODE = 1
}
}
Var 0408, name I_R_ALT, Link IOCARD_SW, Device 16, Input 1
Var 0410, name I_R_XPN, Link IOCARD_SW, Device 16, Input 2
{
IF &I_R_XPN = 1
{
// &IVAP_SB_MODE = 0
}
}
Var 0412, name I_R_TAO, Link IOCARD_SW, Device 16, Input 3
{
IF &I_R_TAO = 1
{
}
}
Var 0414, name I_R_TAR, Link IOCARD_SW, Device 16, Input 4
{
IF &I_R_TAR = 1
{
}
}
Var 0999, name DIGITS_SUB, Link SUBRUTINE
{
L0 = &DIG_4_SUB * 1000
L1 = &DIG_3_SUB * 100
L0 = L0 + L1
L1 = &DIG_2_SUB * 10
L0 = L0 + L1
L0 = L0 + &DIG_1_SUB
&D_ACTIVE = L0
&FS_XPDER_ID = TOBCD &D_ACTIVE
}
+++++++++++++++++++++++++++++++++++++++++++
I am trying to find out what needs changing so that it maybe possible to add the file with mods, to the
transponder code.
Basically I need to get the aircraft to change the Transponder code onto the ATC transponder radio, specifically so I can use a F.O. to change the code, instead of doing it by hand.
I do not seem to be able to find the necessary code that needs to change the code.
If anyone can show me how I need to change these values it would be much appreciated.
Kind regards.............Brian W.
Meet Women Ready for Fun Tonight in Your Town
Experience the Best of Casual...