• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v2 Turbine start switch...

mskhan1991

Resource contributor
Messages
935
Country
pakistan
Working on the alouette 3, using the basic air and cfg file by Peter for testing purposes and using this code for the Start/vent switch.

EDIT: The code now works fine but the problem is that when I put the switch to OFF position the fuel lever automatically goes back to cutoff position... and when I put the fuel lever back to ON position the engine starts even with the SWITCH in OFF position :(

Code:
     <PartInfo>
        <Name>A3_switch_starter</Name>
        <AnimLength>50</AnimLength>
        <Animation>
            <Parameter>
                <Sim>
                    <Variable>TURB ENG MASTER STARTER SWITCH:1</Variable>
                    <Units>bool</Units>
                    <Scale>50</Scale>
                </Sim>
                <Lag>200</Lag>
            </Parameter>
        </Animation>
        <MouseRect>
          <Cursor>Hand</Cursor>
          <TooltipID>TOOLTIPTEXT_A321_MASTER_STARTER_ENG1</TooltipID>
          <MouseFlags>LeftSingle</MouseFlags>
          <CallbackCode>
                1 (&gt;K:TOGGLE_MASTER_STARTER_SWITCH)
          </CallbackCode>
         </MouseRect>
    </PartInfo>

How it should work is that the turbine engine should start when it is moved to start position and should shutdown when moved to shutdown position.

Should not start with fuel cutoff (obviously) and engine should not start when the fuel lever is in ON position

here's a shot if it helps, I dont know how to explain it...

1.jpg
 
Last edited:
I also noticed that there is no sound of the turbine ignition and starting so that is also required before I start with the engine....
 
I'm surprised that script does anything at all, given that there's no such command in the SDK...
...these are all that are listed:
  • TOGGLE_STARTER1 (2,3,4)
  • TOGGLE_ALL_STARTERS
  • ENGINE_AUTO_START
  • ENGINE_AUTO_SHUTDOWN
This is the logic I use to start my turboprop engine(s)
Code:
    <!-- LEFT ENGINE -->
    (L:StarterLeft,bool) 1 ==
    (A:GENERAL ENG STARTER:1,bool) 0 ==
    and
    if{ (>K:TOGGLE_STARTER1) }
    <!-- COMBUSTION -->
    (A:GENERAL ENG COMBUSTION:1,bool)
    (L:StarterLeft,bool) 1 == and
    if{ (>K:TOGGLE_STARTER1) 0 (>L:StarterLeft, enum) }
My starter switch(es) are only two position, but when clicked to the START position, they will hold until the engine ignition (combustion) has ocurred, then will release to the OFF position.
 
I'm surprised that script does anything at all, given that there's no such command in the SDK.....................
if{ (>K:TOGGLE_STARTER1) 0 (>L:StarterLeft, enum) }[/CODE]
My starter switch(es) are only two position, but when clicked to the START position, they will hold until the engine ignition (combustion) has ocurred, then will release to the OFF position.



But will it also work for the helo-turbine engine?

Here's the explaination:
What I am trying to do is using the START/VENT switch... the turbine has to start first and then after sometime the rotor is to be engaged during certain turbine RPM ..... my helo just goes from 0 turb/rotor rpm to whatever it has to alltogether

Here's a video of the start ....

not very helpful but gives an idea that the first sound is of the turbine starting and going to certain RPM and then the rotor engaging and coming upto certain RPM.
 
Last edited:
The mouse click logic would be quite simple. You start by setting a L var to control the animation position of the switch. Then after that you check the position of the switch, the state of engine combustion, state of fuel valve switch etc, state of the engine starter. If the engine is dead and all the conditions are met, trigger the starter event. If the switch is off and the engine is running, trigger the shutdown event.
 
Here's a video with the LAMA startup procedure from FSHELI.ch which I am using as a base for my project .................. and the second startup procedure is from my VC but you can see startup is not automatic but causes the fuel cutoff lever to automatically come to ON position.......... please see video it will explain better ..

 
Last edited:
The mouse click logic would be quite simple. You start by setting a L var to control the animation position of the switch. Then after that you check the position of the switch, the state of engine combustion, state of fuel valve switch etc, state of the engine starter. If the engine is dead and all the conditions are met, trigger the starter event. If the switch is off and the engine is running, trigger the shutdown event.

If only I knew how to do that ......
 
Add this animation code to a controller object (= a simple polygon or box buried somewhere within the instrument panel):

Code:
<PartInfo>
<Name>A3_starter_controller</Name>
<AnimLength>1</AnimLength>
<Animation>
<Parameter>
<Code>
(L:StarterSwitch,number) 1 ==
(A:GENERAL ENG COMBUSTION:1,bool) ! and
if{ (>K:TOGGLE_STARTER1) }
(A:GENERAL ENG COMBUSTION:1,bool)
(L:StarterSwitch,number) 1 == and
if{ (>K:TOGGLE_STARTER1) 0 (>L:StarterSwitch, enum) }

(A:GENERAL ENG COMBUSTION:1,bool)
(L:StarterSwitch,number) 2 == and
if{ (>K:ENGINE_AUTO_SHUTDOWN) 0 (>L:StarterSwitch, enum) }
</Code>
</Parameter>
</Animation>
</PartInfo>


Keyframes: 0 = Middle position, 50 = Up, 100 = Down

Code:
<PartInfo>
<Name>A3_switch_starter</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:StarterSwitch, enum) 50 *
</Code>
<Lag>200</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Start/Shutdown Engine</TooltipText>
<MouseFlags>LeftSingle</MouseFlags>
<CallbackCode>
(L:Starter Switch, enum) 0 ==
(A:GENERAL ENG COMBUSTION:1,bool) !
and
if{ 1 (&gt;L:Starter Switch, enum)  }

(L:Starter Switch, enum) 0 ==
(A:GENERAL ENG COMBUSTION:1,bool)
and
if{ 2 (&gt;L:StarterSwitch, enum)  }
</CallbackCode>
</MouseRect>
</PartInfo>

Don't know if the code will work out of the box, but it should get you started.

The "start turbine before turning rotor" thing is an entirely different issue though.
 
He can actually do all the code within the mouserect <CallbackCode> entries. That will prevent any risk of event flooding although your logic eliminates that as well.
 
Actually I have been trying the logic code provided by the bill in a separate gauge. I emailed Peter from FSHELI regarding the turbine related problems and hoping to get a positive response from him :)
 
Add this animation code to a controller object (= a simple polygon or box buried somewhere within the instrument panel):
...............................................
The "start turbine before turning rotor" thing is an entirely different issue though.

Just tried the code, it shuts down the engine but I am unable to start with it, the switch also doesn't animate somehow.
 
again the engine starts when I move the cutoff lever to ON pos. .............. hmmmmmm
 
You need to fix the code yourself. I've written it during breakfast and never tested it myself.
 
What I am trying to do is using the START/VENT switch... the turbine has to start first and then after sometime the rotor is to be engaged during certain turbine RPM ..... my helo just goes from 0 turb/rotor rpm to whatever it has to alltogether

You mean turbine starts in START position (VENT may be starter on without ignition?) but rotor stays still until engaged by some other switch/command, or automatically after a certain number of turbine RPMs is obtained?
I wonder if ROTOR_BRAKE event could be (or must be) used to stop the rotor until those conditions are met?

Tom
 
I'm not into helos myself, but isn't controlling the rotor blades the function of the clutch? If so, then this should work for that:
Code:
0 (>K:ROTOR_CLUTCH_SWITCH_SET) // rotor clutch disconnected

1 (>K:ROTOR_CLUTCH_SWITCH_SET) // rotor clutch engaged
 
You mean turbine starts in START position (VENT may be starter on without ignition?) but rotor stays still until engaged by some other switch/command, or automatically after a certain number of turbine RPMs is obtained?
I wonder if ROTOR_BRAKE event could be (or must be) used to stop the rotor until those conditions are met?

Tom
Yes Tom, that's exactly what I am looking for but you see the problem is that I am using FSHELI's LAMA X basic config and air file right now before I make my own. I don't know where these things are defined in that heli.
The switch that FSHELI is using is 2D and stored in a .GAU file .... the developer is also kind of busy so I am unable to contact him. I want the start up procedure to be like the one mentioned in the video above but just want the switch to be 3D.

So basically, you move the switch to start/vent....... the turbine starts and rotor doesn't move until turbine reaches 20000+ RPM.... and the rotor should remain stopped with the help of the rotor brake

I'm not into helos myself, but isn't controlling the rotor blades the function of the clutch? If so, then this should work for that:
Code:
0 (>K:ROTOR_CLUTCH_SWITCH_SET) // rotor clutch disconnected

1 (>K:ROTOR_CLUTCH_SWITCH_SET) // rotor clutch engaged

Bill, alouette's use the rotor brake for the purpose of keeping the rotor stationary.... here's a reference startup video:
 
Ok, lets start from the beginning.... I've got extracts from the manual, the proper startup is mentioned here: It does mention the clutch so that's something I did miss during my research.

start page1.jpg
start page2.jpg

So any Idea, what I should do? I already have the booster pump switch working, just the Engine selecter switch is missing. I have the switch modelled, just need to get the right variables into it :)
 
I guess you should code a Rotor Brake handle like the used in the Alouette.

Check K: event ROTOR_HANDLE which takes 0-16384 values (0-100%)
and A:ROTOR BRAKE HANDLE POS,Percent over 100) to show the percentage of brake actuation.

Tom
 
You need to say which of the FS helicopter types you are modeling, because they are different in what they use.
There is, for FSXA, a turbine engine model based on the EH-101. It does not have a clutch, the rotor (connected to N2) starts a very short time after N1 lights up and the rotor brake has an on time of less than 5 seconds.
There is a piston engine model based on the Robinson, which does have a clutch and the rotor starts once the clutch is closed. Same story with its rotor brake.
There is the older legacy model based on the Bell which has a turbine, no clutch and I do not remember what the rotor brake does.
Of course, through the magic of SimConnect you can change the rotor brake behavior, but as it comes, you can not use it to keep the rotor stationary

Roy
 
Actually you can Roy, it does work pretty well with my Seaking, the thing is, you have to constantly press the button. FSX seems to know a rotorbrake axxis (at least SDK is showing something like that) but I haven't found a way of assigning it yet.
 
Back
Top