Jump to content
The simFlight Network Forums

gardan

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by gardan

  1. Hi,

     

    This is an example that can be answered your questions.

     

    Michel

     

     

    Exemple pour la programmation de 2 inter pour allumer les écrans de contrôle

    Var 3118 switch le PFD & le ND

    Var 3119 switch le ECAM1 & ECAM2

    (je n'avais que 2 inter rotatif, mais avec 4, on peux controler les 4 écrans séparement comme dans la réalité)

    Extrait SIOC

    .................
    ................
    ...............
    Var 1996 name Jostick67, Link FSUIPC_OUT Offset $334C Length 4
    .................
    ................
    ...............

    // ********************* ECRAN CONTROLE On/off ***********************

    Var 3118, name PFD_ONOFF, Link IOCARD_SW, Input 34, Type I // On & Off PFD
    {
    &Jostick67 = TOGGLE 8
    }

    Var 3119, name ECAM_ONOFF, Link IOCARD_SW, Input 86, Type I // On & Off ECAM
    {
    &Jostick67 = TOGGLE 7
    }

    Extrait FSUIPC4.INI
    [buttons]
    .............................
    .............................
    .............................
    99=P66,30,CL25:R,171 ; ECAM ALL
    102=P66,31,CL25:R,180 ; ECAM TO config
    103=P67,0,CL25:R,210 ; PROBE ANTI ICE
    104=P67,1,CL25:R,211 ; WING ANTI ICE
    105=P67,2,CL25:R,212 ; ENG1&2 ANTI ICE
    108=P67,3,CL25:R,55 ; VS push
    109=P67,4,CL25:R,56 ; VS pull
    110=P67,5,CL25:R,501 ;TEST ECAM
    111=P67,6,CL25:R,301 ;Baro unit
    112=P67,7,CL25:R,220 ;ECAM SWITCH
    113=P67,8,CL25:R,221 ;PFD SWITCH

     

    Extrait LUA

    .............................
    .............................
    .............................
    -- ECAM ON/OFF

    if ipcPARAM == 220 then

    if (ipc.readLvar("L:AB_MPL_ECAMU_Power") == 1) then
    ipc.writeLvar("L:AB_MPL_ECAMU_Power", 0)
    ipc.sleep(100)
    ipc.writeLvar("L:AB_MPL_ECAML_Power", 0)
    ipc.writeLvar("L:SmallOverheadPushButtons", 1)
    else
    ipc.writeLvar("L:AB_MPL_ECAMU_Power", 1)
    ipc.sleep(100)
    ipc.writeLvar("L:AB_MPL_ECAML_Power", 1)
    ipc.writeLvar("L:SmallOverheadPushButtons", 1)
    end

    end

    -- PFD ON/OFF

    if ipcPARAM == 221 then

    if (ipc.readLvar("L:AB_MPL_PFD_Power") == 1) then
    ipc.writeLvar("L:AB_MPL_PFD_Power", 0)
    ipc.sleep(500)
    ipc.writeLvar("L:AB_MPL_ND_Power", 0)
    ipc.writeLvar("L:SmallOverheadPushButtons", 1)
    else
    ipc.writeLvar("L:AB_MPL_PFD_Power", 1)
    ipc.sleep(500)
    ipc.writeLvar("L:AB_MPL_ND_Power", 1)
    ipc.writeLvar("L:SmallOverheadPushButtons", 1)
    end

    end

    .............................
    .............................
    .............................

    REM
    LVars du SDK
    AB_MPL_PFD_Power
    AB_MPL_ND_Power
    AB_MPL_ECAMU_Power
    AB_MPL_ECAML_Power

  2. I'm not even sure that works with the extended, that was for the original Airbus from years ago and the display facilities in LINDA are specifically for VRinsight hardware, they are no use to anyone else. I suppose you could use them to research building your own scripts though.

    It work very well with Extended

     

    More a new list of LVars product by aerosoft.

     

    I am an Hardsimmeur and my cockpit work with SIOC + FSUIPC + LUA.

     

    http://www.super-marche.com/fs/IMG_08.jpg

     

    I think that 95 % of Airbus instructions is possible.

     

    Excuse my English lnagage

     

    Michel

  3. Hello,

    I use the LUA script Guenseli (whom I thank again) for my A320 cockpit AirbusX.

    98% of instructions work ok, but a bug from a few instructions.

    extract Sioc

    Var 1999 name Jostick64, Link FSUIPC_OUT Offset $3340 Length 4

    Var 1998 name Jostick65, Link FSUIPC_OUT Offset $3344 Length 4

    Var 1997 name Jostick66, Link FSUIPC_OUT Offset $3348 Length 4

    extract FSUIPC.ini

    3=P64,0,CL25:R,80

    4=P64,1,CL25:R,81

    5=P64,2,CL25:R,82

    6=P64,3,CL25:R,83

    7=P64,4,CL25:R,20

    ---------------------------------------

    93=P66,24,CL25:R,165 ; ECAM FUEL

    94=P66,25,CL25:R,166 ; ECAM APU

    95=P66,26,CL25:R,167 ; ECAM COND

    96=P66,27,CL25:R,168 ; ECAM DOOR

    97=P66,28,CL25:R,169 ; ECAM WHEEL

    98=P66,29,CL25:R,170 ; ECAM FCTL

    99=P66,30,CL25:R,171 ; ECAM ALL

    Are there some things not correct.ou the LUA script is involved

    Thank you for your answer

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.