I'm unable to start the engine.
To do this I must :
For the magnetos the following code works.
for the starter, with this code, the engine runs slowly, but will not start.
For the "launch button" I have the following code that does exactly the same as the code of the starter.
Off course the mixture is "full rich" and the variable "A: GENERAL ENG GENERATOR SWITCH: 1, bool" returns "1"
When I press "Ctrl E" engine starts normally.
If I switch the magnetos "off", the engine stops normally
if, once again, I switch both magnetos "on" the engine doesn't start again.
I tried with :
Maybe a sequence in the procedure is missing, or the code is wrong, but I can not identify which one.
Thank you for your help.
To do this I must :
- select both magnetos "000-NORATLAS_Sélecteur Magnéto_G"
- press the starter button "000-NORATLAS_Demarreur1"
- simultaneously press the engine launch button. "00-NORD_Starter1"
For the magnetos the following code works.
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 -->
(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) 0 == if{ (>K:MAGNETO1_OFF) }
(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) 0 == 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) 0 == 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) }
</CallbackCode>
</MouseRect>
</PartInfo>
for the starter, with this code, the engine runs slowly, but will not start.
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) }
(L:Demarreur1,enum) -1 == if{ ([COLOR="Red"][B]>K:TOGGLE_STARTER1[/B][/COLOR]) }
</CallbackCode>
</MouseRect>
</PartInfo>
For the "launch button" I have the following code that does exactly the same as the code of the 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>
<!-- Quand on clique la valeur de la valriable = "1", "0" quand on relache --> <CallbackCode>(L:Nord_Starter_1,number) ! (>L:Nord_Starter_1,number)
(L:Nord_Starter_1,number) 1 == if{ [COLOR="Red"][B](>K:MAGNETO1_START[/B][/COLOR]) }
</CallbackCode>
</MouseRect>
</PartInfo>
Off course the mixture is "full rich" and the variable "A: GENERAL ENG GENERATOR SWITCH: 1, bool" returns "1"
When I press "Ctrl E" engine starts normally.
If I switch the magnetos "off", the engine stops normally
if, once again, I switch both magnetos "on" the engine doesn't start again.
I tried with :
- (L:Nord_Starter_1,number) 1 == if{ (>K:TOGGLE_STARTER1) }
- (L:Nord_Starter_1,number) 1 == if{ (>K:TOGGLE_MASTER_IGNITION_SWITCH) }
Maybe a sequence in the procedure is missing, or the code is wrong, but I can not identify which one.
Thank you for your help.







