Results 1 to 2 of 2
  1. #1
    New Member
    Join Date
    May 2012
    Location
    Gold Coast
    Posts
    2
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    serious help needed Opencockpits ATC radio and Project Magenta

    Hi all I am new at SIOC after 2 days I just can't get my head around things.

    First my XPNDR Fail light wont work I tried to fix it got it working with my fingernail thought must be a dry joint nope not working at all now never mind not that important.

    But here's what I need:

    I am trying to get the TA/RA switch to work with PM software and activate the Data OFF when in Standby Altitude Data When on XPNDR All Aircraft When on TA Only and Callsigns when in TA/RA.

    Now I can activate these from my PM CDU but can't understand why not from radio.

    Also My Ident button will not work in Squawkbox.

    Ok so here's what I tried thus far.

    Downloaded SIOC4.01, IOCModules, Autoconfig1.4 etc.

    Now if I run Autoconfig1.4 select PM all it will do is turn the altitude data on but not off. So I need an answer for this or script or major help!!!!

    I have tried some other scripts I found one that makes the encoders handle both sets of numbers which i really like but wont help me with PM

    Also if I try autoconfig1.4 FSX+FSUIPC there is no response in FSUIPC to the unit when i push a button?

    Ok people I need your help as my mind is going nuts thanks

    Colin

  2. #2
    New Member
    Join Date
    May 2012
    Location
    Gold Coast
    Posts
    2
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: serious help needed Opencockpits ATC radio and Project Magenta

    Never mind I got it working the way I want and in case anyone wants the code here it is

    // * FileName : projectm.txt
    // * Date : 10/05/2012



    Var 0000, Value 0
    {
    &D_ACTIVE = 1200
    &DIG_POS_STATUS = 1
    &DIS_ATC = 1
    &DIS_1 = 1
    &DIS_2 = 0
    }

    Var 0001, name FS_XPDER_ID, Link FSUIPC_INOUT, Offset $0354, Length 2

    Var 0002, name IVAP_SB_MODE, Link FSUIPC_INOUT, Offset $7B91, Length 1

    Var 0003, name IVAP_SB_IDENT, Link FSUIPC_INOUT, Offset $7B93, Length 1

    Var 0004, 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 0005, name TCAS_MAGENTA, Link FSUIPC_INOUT, Offset $04F4, Length 2

    Var 0006, name DIG_POS_STATUS

    Var 0007, name DIG_1_SUB, Value 0
    {
    CALL &DIGITS_SUB
    }

    Var 0008, name DIG_2_SUB, Value 0
    {
    CALL &DIGITS_SUB
    }

    Var 0009, name DIG_3_SUB, Value 2
    {
    CALL &DIGITS_SUB
    }

    Var 0010, name DIG_4_SUB, Value 1
    {
    CALL &DIGITS_SUB
    }

    Var 0011, name D_ACTIVE, Link IOCARD_DISPLAY, Device 16, Digit 0, Numbers 4

    Var 0012, name D_FAIL, Link IOCARD_DISPLAY, Device 16, Digit 4, Numbers 1

    Var 0013, name D_BRIGHT, Link IOCARD_DISPLAY, Device 16, Digit 16, Numbers 3

    Var 0014, name DIS_ATC, Link IOCARD_OUT, Device 16, Output 20

    Var 0015, name DIS_1, Link IOCARD_OUT, Device 16, Output 21

    Var 0016, name DIS_2, Link IOCARD_OUT, Device 16, Output 22

    Var 0017, name LED_FAIL, Link IOCARD_OUT, Device 16, Output 23

    Var 0018, 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 0019, 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 0020, name I_IDENT, Link IOCARD_SW, Device 16, Input 12
    {
    IF &I_IDENT = 1
    {
    &IVAP_SB_IDENT = 1
    }
    }

    Var 0021, 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 0022, name STANDBY, Link IOCARD_SW, Device 16, Input 0
    {
    IF &STANDBY = 1
    {
    &IVAP_SB_MODE = 1
    &TCAS_MAGENTA = 50
    }
    }

    Var 0023, name I_R_ALT, Link IOCARD_SW, Device 16, Input 1

    Var 0024, name I_R_XPN, Link IOCARD_SW, Device 16, Input 2
    {
    IF &I_R_XPN = 1
    {
    &IVAP_SB_MODE = 0
    &TCAS_MAGENTA = 51
    }
    }

    Var 0025, name I_R_TAO, Link IOCARD_SW, Device 16, Input 3
    {
    IF &I_R_TAO = 1
    {
    &TCAS_MAGENTA = 53
    }
    }

    Var 0026, name I_R_TAR, Link IOCARD_SW, Device 16, Input 4
    {
    IF &I_R_TAR = 1
    {
    &TCAS_MAGENTA = 52
    }
    }

    Var 0027, 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
    }

    colin

  3. Thanks DAL196, nricky, vidarf thanked for this post