My problem is this :
To start the engines I have :
For the left engine
for the right one :
The codes of the right engine are a simple duplication of those of the left engine.
The left engine starts correctly, but the right begins to run, then stops without combustion.
For the magnetos the code is this :
For the left engine
For the right engine :
The left "Demarreur" :
The right "Demarreur" :
The left starter :
The right starter :
Thank for your help.
To start the engines I have :
For the left engine
- Master Battery = ON
- Magneto1 = BOTH
- Demarreur1 = -1
- Nord_Starter_1 =1
for the right one :
- Master Battery = ON
- Magneto2 = BOTH
- Demarreur2 =-1
- Nord_Starter_2 = 1
The codes of the right engine are a simple duplication of those of the left engine.
The left engine starts correctly, but the right begins to run, then stops without combustion.
For the magnetos the code is this :
For the left engine
Code:
<PartInfo>
<Name>000-NORATLAS_Sélecteur Magnéto_G</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code> (L:Magneto_G,enum) 10 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+RightSingle</MouseFlags> <TooltipText>Magnetos Moteur Gauche</TooltipText>
<CallbackCode>
<!-- DECREASE -->
(M:Event) 'RightSingle' scmp 0 ==
if{ (L:Magneto_G,enum) -- 0 max (>L:Magneto_G,enum) }
<!-- INCREASE -->
(M:Event) 'LeftSingle' scmp 0 ==
if{ (L:Magneto_G,enum) ++ 5 min (>L:Magneto_G,enum) }
<!-- EVALUATE SWITCH POSITION AND TAKE ACTION -->
<!-- NOTE THE FOLLOWING IS NOT STRICTLY NECESSARY, BUT IT CLEARLY "DOES NOTHING!" -->
(L:Magneto_G,enum) 0 == if{ 0 (>L:Lampe_Magneto_G_Visible,bool) }
(L:Magneto_G,enum) 0 == if{ 0 (>L:Lampe_Essence_G_Visible,bool) }
(L:Magneto_G,enum) 1 == if{ 1 (>L:Lampe_Magneto_G_Visible,bool) }
(L:Magneto_G,enum) 1 == if{ 0 (>L:Lampe_Essence_G_Visible,bool) }
(L:Magneto_G,enum) 1 == if{ (>K:MAGNETO1_OFF) }
(L:Magneto_G,enum) 2 == if{ 1 (>L:Lampe_Magneto_G_Visible,bool) }
(L:Magneto_G,enum) 2 == if{ 1 (>L:Lampe_Essence_G_Visible,bool) }
(L:Magneto_G,enum) 2 == if{ (>K:MAGNETO1_OFF) }
(L:Magneto_G,enum) 3 == if{ 0 (>L:Lampe_Magneto_G_Visible,bool) }
(L:Magneto_G,enum) 3 == if{ 0 (>L:Lampe_Essence_G_Visible,bool) }
(L:Magneto_G,enum) 3 == if{ (>K:MAGNETO1_LEFT) }
(L:Magneto_G,enum) 4 == if{ 0 (>L:Lampe_Magneto_G_Visible,bool) }
(L:Magneto_G,enum) 4 == if{ 0 (>L:Lampe_Essence_G_Visible,bool) }
(L:Magneto_G,enum) 4 == if{ (>K:MAGNETO1_RIGHT) }
(L:Magneto_G,enum) 5 == if{ 0 (>L:Lampe_Magneto_G_Visible,bool) }
(L:Magneto_G,enum) 5 == if{ 0 (>L:Lampe_Essence_G_Visible,bool) }
(L:Magneto_G,enum) 5 == if{ (>K:MAGNETO1_BOTH) }
(L:Magneto_G,enum) 5 == if{ (>K:MIXTURE1_RICH)
</CallbackCode>
</MouseRect>
</PartInfo>
For the right engine :
Code:
<PartInfo>
<Name>000-NORATLAS_Sélecteur Magnéto_D</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code> (L:Magneto_D,enum) 10 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+RightSingle</MouseFlags> <TooltipText>Magnetos Moteur Droit</TooltipText>
<CallbackCode>
<!-- DECREASE -->
(M:Event) 'RightSingle' scmp 0 ==
if{ (L:Magneto_D,enum) -- 0 max (>L:Magneto_D,enum) }
<!-- INCREASE -->
(M:Event) 'LeftSingle' scmp 0 ==
if{ (L:Magneto_D,enum) ++ 5 min (>L:Magneto_D,enum) }
<!-- EVALUATE SWITCH POSITION AND TAKE ACTION -->
<!-- NOTE THE FOLLOWING IS NOT STRICTLY NECESSARY, BUT IT CLEARLY "DOES NOTHING!" -->
(L:Magneto_D,enum) 0 == if{ 0 (>L:Lampe_Magneto_D_Visible,bool) }
(L:Magneto_D,enum) 0 == if{ 0 (>L:Lampe_Essence_D_Visible,bool) }
(L:Magneto_D,enum) 1 == if{ 1 (>L:Lampe_Magneto_D_Visible,bool) }
(L:Magneto_D,enum) 1 == if{ 0 (>L:Lampe_Essence_D_Visible,bool) }
(L:Magneto_D,enum) 1 == if{ (>K:MAGNETO2_OFF) }
(L:Magneto_D,enum) 2 == if{ 1 (>L:Lampe_Magneto_D_Visible,bool) }
(L:Magneto_D,enum) 2 == if{ 1 (>L:Lampe_Essence_D_Visible,bool) }
(L:Magneto_D,enum) 2 == if{ (>K:MAGNETO2_OFF) }
(L:Magneto_D,enum) 3 == if{ 0 (>L:Lampe_Magneto_D_Visible,bool) }
(L:Magneto_D,enum) 3 == if{ 0 (>L:Lampe_Essence_D_Visible,bool) }
(L:Magneto_D,enum) 3 == if{ (>K:MAGNETO2_LEFT) }
(L:Magneto_D,enum) 4 == if{ 0 (>L:Lampe_Magneto_D_Visible,bool) }
(L:Magneto_D,enum) 4 == if{ 0 (>L:Lampe_Essence_D_Visible,bool) }
(L:Magneto_D,enum) 4 == if{ (>K:MAGNETO2_RIGHT) }
(L:Magneto_D,enum) 5 == if{ 0 (>L:Lampe_Magneto_D_Visible,bool) }
(L:Magneto_D,enum) 5 == if{ 0 (>L:Lampe_Essence_D_Visible,bool) }
(L:Magneto_D,enum) 5 == if{ (>K:MAGNETO2_BOTH) }
(L:Magneto_D,enum) 5 == if{ (>K:MIXTURE2_RICH) }
</CallbackCode>
</MouseRect>
</PartInfo>
The left "Demarreur" :
Code:
<PartInfo>
<Name>000-NORATLAS_Demarreur1</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
50 (L:Demarreur1,enum) 50 * +
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Demarreur Moteur 1</TooltipText>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ -1 (>L:Demarreur1, enum) (P:local time, seconds) 3 + (>L:Demarreur1_reset) }
</CallbackCode>
</MouseRect>
</PartInfo>
The right "Demarreur" :
Code:
<PartInfo>
<Name>000-NORATLAS_Demarreur2</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
50 (L:Demarreur2,enum) 50 * +
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Demarreur Moteur 2</TooltipText>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<CallbackCode>
(M:Event) 'LeftSingle' scmp 0 ==
if{ -1 (>L:Demarreur2, enum) (P:local time, seconds) 3 + (>L:Demarreur2_reset) }
</CallbackCode>
</MouseRect>
</PartInfo>
The left starter :
Code:
<PartInfo>
<Name>00-NORD_Starter1</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Nord_Starter_1,number) 100 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<TooltipText>Allumage moteur G</TooltipText>
<CallbackCode>
(L:Nord_Starter_1,number) ! (>L:Nord_Starter_1,number)
(L:Nord_Starter_1,number) 1 ==
(L:Demarreur1,enum) -1 == and
if{ 1 (>K:TOGGLE_STARTER1) }
</CallbackCode>
</MouseRect>
</PartInfo>
The right starter :
Code:
<PartInfo>
<Name>00-NORD_Starter2</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:Nord_Starter_2,number) 100 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle+LeftRelease</MouseFlags>
<TooltipText>Allumage moteur D</TooltipText>
<CallbackCode>
(L:Nord_Starter_2,number) ! (>L:Nord_Starter_2,number)
(L:Nord_Starter_2,number) 1 ==
(L:Demarreur2,enum) -1 == and
if{ 1 (>K:TOGGLE_STARTER2) }
</CallbackCode>
</MouseRect>
</PartInfo>
Thank for your help.





