Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    25+ Posting Member
    Join Date
    Jan 2006
    Location
    Benevento
    Posts
    32
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by sas550 View Post
    Here's the fsuipc offset.

    3122
    1
    Radio audio switches (FS2002+ only). Read/write bit settings as follows: 2^7 COM1 transmit
    2^6 COM2 transmit
    2^5 COM receive both
    2^4 NAV1 sound
    2^3 NAV2 sound
    2^2 Marker sound
    2^1 DME sound
    2^0 ADF1 sound


    If you're using sioc I can post the code I use when I get home from work tomorrow.
    Hi , i use SIOC and i have the same problem. Can you send me this code ? Thanks in advance.

    Giuseppe Reda

  2. #12
    150+ Forum Groupie sas550's Avatar
    Join Date
    May 2007
    Location
    Sweden
    Posts
    209
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Here's the code. The red part is to set mrker sound to on and the green part is to indicate that it's on with a led.




    //Audio panel
    Var 0016, Link FSUIPC_OUT, Offset $3122, Length 1 // Radio Audio Bytes
    Var 0017, Link IOCARD_SW, Input 10 // COM1 Audio
    {
    IF V0017 = 1
    {
    V0016 = SETBIT 6
    }
    ELSE
    {
    V0016 = SETBIT 7
    }
    IF V0017 = 1
    {
    V0016 = CLEARBIT 7
    }
    ELSE
    {
    V0016 = CLEARBIT 6
    }
    }
    Var 0018, Link IOCARD_SW, Input 13 // BOTH Audio
    {
    IF V0018 = 1
    {
    V0016 = SETBIT 5
    }
    ELSE
    {
    V0016 = CLEARBIT 5
    }
    }
    Var 0019, Link IOCARD_SW, Input 12 // NAV1 Audio
    {
    IF V0019 = 1
    {
    V0016 = SETBIT 4
    }
    ELSE
    {
    V0016 = CLEARBIT 4
    }
    }
    Var 0020, Link IOCARD_SW, Input 16, // NAV2 Audio
    {
    IF V0020 = 1
    {
    V0016 = SETBIT 3
    }
    ELSE
    {
    V0016 = CLEARBIT 3
    }
    }
    Var 0021, Link IOCARD_SW, Input 17, // MKR Audio
    {
    IF V0021 = 1
    {
    V0016 = SETBIT 2
    }
    ELSE
    {
    V0016 = CLEARBIT 2
    }
    }

    Var 0022, Link IOCARD_SW, Input 9, // ADF Audio
    {
    IF V0022 = 1
    {
    V0016 = SETBIT 0
    }
    ELSE
    {
    V0016 = CLEARBIT 0
    }
    }
    //audio out
    Var 0110, Link FSUIPC_IN, Offset $3122, Length 1 // Radio Audio Bytes
    {
    V0111 = TESTBIT V0110, 7 // COM1
    V0127 = TESTBIT V0110, 6 // COM2
    V0113 = TESTBIT V0110, 5 // BOTH
    V0115 = TESTBIT V0110, 4 // NAV1
    V0117 = TESTBIT V0110, 3 // NAV2
    V0119 = TESTBIT V0110, 2 // MRKR
    V0121 = TESTBIT V0110, 0 // ADF
    }
    Regards Anders Eriksson


    www.simcockpit.se

    FS9

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Marker beacons in PM
    By Jackpilot in forum PM General Q & A
    Replies: 11
    Last Post: 04-28-2008, 11:02 AM
  2. marker lights dont activate
    By lineman55 in forum FS2Phidget Users
    Replies: 5
    Last Post: 01-18-2005, 06:09 AM