Results 1 to 5 of 5
  1. #1
    25+ Posting Member
    Join Date
    Nov 2010
    Location
    Perth
    Posts
    48
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Momentary or alternate action

    Hi Kiek,

    I think maybe 26 and 27 is set to momentary. I believe it should be alternate action, can you please check. Have a read about -1 I am not sure what that means.

    Many thanks,

    Blake



    >>> ACP switches

    Code: For Qh indices, refer to Variables.txt.
    Name: SwitchesAudioL, SwitchesAudioC, SwitchesAudioR.
    Mode: ACP
    Range: -1 .. 27
    Add-ons can: Read & write
    Description:

    The integer value indicates which of the momentary action switches is currently pushed:
    0 : MIC pushbutton VHF L
    1 : MIC pushbutton VHF C
    2 : MIC pushbutton VHF R
    3 : MIC pushbutton FLT
    4 : MIC pushbutton CAB
    5 : MIC pushbutton PA
    6 : MIC pushbutton HF L
    7 : MIC pushbutton HF R
    8 : MIC pushbutton SAT L
    9 : MIC pushbutton SAT R
    10 : Volume pushbutton VHF L
    11 : Volume pushbutton VHF C
    12 : Volume pushbutton VHF R
    13 : Volume pushbutton FLT
    14 : Volume pushbutton CAB
    15 : Volume pushbutton PA
    16 : Volume pushbutton HF L
    17 : Volume pushbutton HF R
    18 : Volume pushbutton SAT L
    19 : Volume pushbutton SAT R
    20 : Volume pushbutton SPKR
    21 : Volume pushbutton VOR/ADF
    22 : Volume pushbutton ILS/Marker (APP)
    23 : Unused
    24 : Unused
    25 : Unused
    26 : Talk toggle switch in R/T position
    27 : Talk toggle switch in INT position

    Switches 0 through 22 are momentary action pushbuttons (DELTA mode), switches 26 and 27 can be held (ECON mode). For example, when the SPKR hardware button is pressed, the add-on should inject the value 20 into the server. Just a single injection is required. There should be no repetitions while the button is pressed. The server's virtual SPKR button will automatically release after a fraction of a second. The talk toggle switch (for R/T and INT), however, is a special case because this switch can, and must, be held while talking. The server will not release this switch automatically. The hardware must send -1 to the server when the hardware switch is released.
    <<<

  2. #2
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,198
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Momentary or alternate action

    Hi,
    I am out of the country. Will look into it after April 20th.
    Nico

  3. #3
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,198
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Momentary or alternate action

    Hi Blake,
    26 and 27 have already been implemented as push buttons that can be held, only the documentation was wrong. I've updated the documentation in version 2.0.6.

    If you push a button connected to 26 or 27, the code (26 or 27) will be sent to PSX, and when you release the button a -1 is sent to PSX to signal that you have released the button.

    Nico

  4. #4
    25+ Posting Member
    Join Date
    Nov 2010
    Location
    Perth
    Posts
    48
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Momentary or alternate action

    Hi Kiek,

    Thanks.

    I am still consistently getting a memory leak

    Hope you can help

    Blake

  5. #5
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,198
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Momentary or alternate action

    Hi,
    I know, but please answer my questions in your other thread (about freezing) first...
    Nico