MCP Opencockpit ne fonctionne plus

jetstream

PILOTE PRO
Messages
982
Réactions
223
Points
192
Bonjour,

J'ai fais divers updates sur mon ancien ordinateur: dernière version P3D, SIOC V5 vers V6 et changement de port USB pour raison pratique (nouveau hub, etc) depuis, mon MCP Opencockpit ne fonctionne plus... j'ai tout déconnecté sauf le MCP pour simplifier...

Voici comment apparait SIOC quand je le lance:

1532011760_sioc1.png


Voici l'écran de config SIOC:

1532012018_sioc2.png


Dans le fichier SIOC.INI, j'ai mis la ligne suivante:

[MASTER=0,5,1,71]

Le setup SIOC pointe vers le fichier SIOC.SSI que voici en format texte:

Code:
// This SIOC script supports One MCP device, two EFIS devices
// For this script to work, the following device numbers are expected:
//
// Device 0: MCP

// Start of MCP Device
// DIGITS
// These are the actual MCP values that are read and written by Prosim. They need to be whole values.
Var 100, name D_COURSE1, Link IOCARD_DISPLAY, Digit 0, Numbers 3
Var 102, name D_IAS, Link IOCARD_DISPLAY, Digit 3, Numbers 3
Var 104, name D_HDG, Link IOCARD_DISPLAY, Digit 6, Numbers 3
Var 106, name D_ALT, Link IOCARD_DISPLAY, Digit 9, Numbers 5
Var 108, name D_VS, Link IOCARD_DISPLAY, Digit 14, Numbers 5
Var 110, name D_COURSE2, Link IOCARD_DISPLAY, Digit 19, Numbers 3

// Vertical Speed Trigger
// This variable is set to 1 when the VS wheel is rotated while the VS display is blanked.
// This can trigger a V/S mode if MCP altitude is different than current altitude.
Var 112, Name VS_Trigger

// OUTPUTS
// These are the lights on the MCP, written by Prosim
Var 200, name DECIMAL
{
// Do not place the decimal if the display is blanked
    If &Inhibit_IAS = 0
    {
        V201 = &DECIMAL
    }
}
Var 201, Link IOCARD_OUT, Output 20
Var 202, name O_N1, Link IOCARD_OUT, Output 21
Var 204, name O_AT, Link IOCARD_OUT, Output 22
Var 206, name O_SPEED, Link IOCARD_OUT, Output 23
Var 208, name O_LVLCHG, Link IOCARD_OUT, Output 24
Var 210, name O_VNAV, Link IOCARD_OUT, Output 25
Var 212, name O_HDGSEL, Link IOCARD_OUT, Output 26
Var 214, name O_APP, Link IOCARD_OUT, Output 27
Var 216, name O_VORLOC, Link IOCARD_OUT, Output 28
Var 218, name O_LNAV, Link IOCARD_OUT, Output 29
Var 220, name O_ALTHLD, Link IOCARD_OUT, Output 30
Var 222, name O_VS, Link IOCARD_OUT, Output 31
Var 224, name O_CWSA, Link IOCARD_OUT, Output 32
Var 226, name O_CMDA, Link IOCARD_OUT, Output 33
Var 228, name O_CWSB, Link IOCARD_OUT, Output 34
Var 230, name O_CMDB, Link IOCARD_OUT, Output 35
Var 232, name O_FD1                // Not available on OC MCP
Var 234, name O_FD2                // Not available on OC MCP
Var 236, name O_IASSYMB            // Flashing A or B in front of speed in IAS window, not available in OC MCP: 0 = No warning, 1 = Flashing A, 2 = Flashing B
Var 238, name O_BACKLIGHT        // Backlight: 1 = on, 0 = off

// ROTARY ENCODERS
// The rotary encoders control the MCP values. The actual rotary encoder variables are not read or written by Prosim.
// The rotary encoders change the MCP values. Before doing this, they will check the associated inhibit variable, to
// see if the display is not blanked. If the display is blanked, the rotary encoder ds nothing.
Var 300, name E_IAS, Link IOCARD_ENCODER, Input 0, Aceleration 4, Type 2
{
  If &Inhibit_IAS = 0
  {
     L0 = -1 * V300
     If &DECIMAL = 1
     {
        V102 = LIMIT 50, 90, L0
     }
     Else
     {
        V102 = LIMIT 110, 400, L0
     }
  }
}
Var 302, name E_ALT, Link IOCARD_ENCODER, Input 2, Aceleration 4, Type 2
{
  If &Inhibit_Alt = 0
  {
     L0 = -100 * V302
     V106 = LIMIT 0 ,50000, L0
  }
}

Var 304, name E_COURSE1, Link IOCARD_ENCODER, Input 4, Aceleration 4, Type 2
{
  If &Inhibit_OBS1 = 0
  {
     L0 = V304 * -1
     V100 = ROTATE 0, 359, L0
  }
}
Var 306, name E_HDG, Link IOCARD_ENCODER, Input 6, Aceleration 4, Type 2
{
  If &Inhibit_HDG = 0
  {
     L0 = V306 * -1
     V104 = ROTATE 0, 359, L0
  }
}
Var 308, name E_COURSE2, Link IOCARD_ENCODER, Input 9, Aceleration 4, Type 2
{
  If &Inhibit_OBS2 = 0
  {
     L0 = V308 * -1
     V110 = ROTATE 0, 359, L0
  }
}
Var 310, name E_VS, Link IOCARD_ENCODER, Input 11, Aceleration 4, Type 2
{
  If &Inhibit_VS = 0
  {
    L0 = V310 * -50
    V108 = LIMIT -7000, 7000, L0
  }
  Else
  {
     &VS_Trigger = 1
  }
}

// Display Inhibit
// Display inhibit variables signal the blanking of the displays. They are written by Prosim
Var 320, name Inhibit_IAS
{
   If V320 = 1
   {
      &D_IAS = -999999
      V201 = 0
   }
   Else
   {
      V201 = &DECIMAL
   }
}

Var 322, name Inhibit_Alt
{
   If V322 = 1
   {
      &D_ALT = -999999
   }
}

Var 324, name Inhibit_OBS1
{
   If V324 = 1
   {
      &D_COURSE1 = -999999
   }
}

Var 326, name Inhibit_HDG
{
   If V326 = 1
   {
      &D_HDG = -999999
   }
}

Var 328, name Inhibit_OBS2
{
   If V328 = 1
   {
      &D_COURSE2 = -999999
   }
}

Var 330, name Inhibit_VS
{
   If V330 = 1
   {
      &D_VS = -999999
   }
}

// SWITCHES
// The MCP switches are read by Prosim
Var 400, name I_CO, Link IOCARD_SW, Input 13
Var 402, name I_FD2, Link IOCARD_SW, Input 14
Var 404, name I_DISENGAGE, Link IOCARD_SW, Input 15
Var 406, name I_FD1, Link IOCARD_SW, Input 16
Var 408, name I_CWSB, Link IOCARD_SW, Input 18
Var 410, name I_CMDB, Link IOCARD_SW, Input 19
Var 412, name I_CWSA, Link IOCARD_SW, Input 20
Var 414, name I_CMDA, Link IOCARD_SW, Input 21
Var 416, name I_VS, Link IOCARD_SW, Input 22
Var 418, name I_ALTHLD, Link IOCARD_SW, Input 23
Var 420, name I_APP, Link IOCARD_SW, Input 24
Var 422, name I_VORLOC, Link IOCARD_SW, Input 25
Var 424, name I_LNAV, Link IOCARD_SW, Input 27
Var 426, name I_HDGSEL, Link IOCARD_SW, Input 28
Var 428, name I_LVLCHG, Link IOCARD_SW, Input 29
Var 430, name I_VNAV, Link IOCARD_SW, Input 30
Var 432, name I_SPEED, Link IOCARD_SW, Input 31
Var 434, name I_N1, Link IOCARD_SW, Input 32
Var 436, name I_AT, Link IOCARD_SW, Input 33
Var 438, name I_SPD_INTER                    // Speed intervention, not available on OC MCP
Var 440, name I_ALT_INTER                    // Alt intervention, not available on OC MCP
Var 442, name I_BANK_LIMIT                    // Bank limit, not available on MCP, values are 10, 15, 20, 25 or 30

//=====================================================================
// End Of MCP device

Quand je lance P3D, je vois ceci:

1532012501_sico3.png


Si un génie de SIOC a une idée, je le remercie d'avance :)
 
Oooops, problème résolu, j'avais chargé un mauvais script, merci encore pour ton aide et désolé pour le dérangement, la chaleur ma pas réussi...
 
Retour
Haut