• 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.

FSXA Custom prop control

Messages
189
Country
hungary
Hello

It is possible to drive a custom L:variable within the <CallbackDragging> tag in modeldef.xml ?

I want to code a custom prop lever. The whole anim of the lever is a simple 90-degree rotation. In the range of 0-45 degrees the lever gives a usual operation : forward = high rpm, backward = low rpm.

The tricky part ( for me ) that there is a manual secure lock at the half way of the rotation, at the 45th degree. If the lock is closed the lever will stop at the low rpm state. When I want to feather the prop - in the case of engine failure, for example - I have to open this lock, and I can put the lever into its 45-90 degrees range, and the feathering is activating.
 
Next level :)

I have prop_feathering_available= 1 or prop_auto_feathering_available=1 lines in aircraft.cfg. Tried both separately, but can't get the feathered state. I've made a small mouse rectangle beside the levers, attached the code below to them :

Code:
 (M:Event) 'LeftSingle' scmi ==
         if{ 1 (>L:prop_vit_bal, bool)
             1 (>L:prop_stop, bool) 
               (>K:TOGGLE_FEATHER_SWITCH_1) }

(>K:TOGGLE_FEATHER_SWITCH_1) should work?

Do I need any other setup to get a feathered state?

Thanks
 
Depends on what you mean by "feathered state". What are you expecting to happen?
 
Feathered state is when the prop blades are feathered :D

Sorry :rolleyes: See the picture. In the case of engine failure the pilot can feather the blades to prevent wind milling which causes drag.

mccune001.jpg
 
Feathered state is when the prop blades are feathered

Of course, but if you are talking about the visual propeller effects of feathering, that can include no windmilling as well as prop blade turning into the wind (ie, changing the prop pitch). Is your aircraft model capable of that animation? Perhaps that is what Tom is getting at, above. Not sure.

For example, when an engine is cut and the prop feathered in the default FSX Baron, windmilling stops, but the prop blades do not visually turn into the wind. Naturally, the throttle and/or mixture must be cut on the feathered prop in order for windmilling to stop.

And, I find TOGGLE_FEATHER_SWITCH_1 in the online SDK, though I have never tried that Event myself.

Hope this helps,

Bob
 
Last edited:
Ok, I wasn't clear enough, sorry.

So, i put a little test panel to display different variables. One of these is the feather state boolean. In the fully backward position of the prop lever it should activate the feather with the K:TOGGLE_FEATHER_SWITCH_1 event. But the state of the feather is always zero, doesn't change to 1. The anim of the blades and levers are ok now with custom and stock variables, but i want to achieve the feathered state to 1.
 
Then its possibly the function of TOGGLE_FEATHER_SWITCH_1 that may be misunderstood? I have never used that ... I don't really know.

Did you experiment using PROP_PITCH1_SET instead? I suggest to take a look at the default FSX Baron Engine Controls Unit.xml to see how they accomplish a feather ... using (>K: PROP_PITCH1_SET). Maybe that will lead somewhere ......

Bob
 
Then its possibly the function of TOGGLE_FEATHER_SWITCH_1 that may be misunderstood? I have never used that ... I don't really know.

Did you experiment using PROP_PITCH1_SET instead? I suggest to take a look at the default FSX Baron Engine Controls Unit.xml to see how they accomplish a feather ... using (>K: PROP_PITCH1_SET). Maybe that will lead somewhere ......

Bob

Good questions, this what I would like to know also :) But I'm sure that PROP_PITCH1_SET controls the the normal prop pitch range only, not the feather. I mean between high and low rpm setting. But I'll take a try, see what happens. I took a ride with the Baron, but the prop don't stops at feather o_O

Here is a pic from my plane, now you can see what I'm talking about :)

When click one of the dummy switch with leftclick, the catch opens - in real plane the pilots opens it, but it was easier :) - then the lever rotates to the feathered state. At this state the lever push a switch ( it's easy to catch with an L: variable), which will turn on the feather pump, and the blades turns to feathered pitch. Also a green light will sign that the feather pumps is on. There is on more switch on the overhead panel for each prop, which - after the blades are feathered or de-feathered - the pilot can switch off the pumps before they burn down :)

For de-feathering, the prop lever has to be put into high rpm/low pitch with rightclick on the dummy, push and hold the de-feather switch ( or button ) for some seconds the blades turns to low pitch.

Nice task, isn't it ? :D The good news that the most of the above functions and animations are work already. Only two things missing :

- the prop not feathers "logically", only visually
- I can not figure out a code for the hold-down knob. I mean : hold down, and a L: variable increasing from 0 to 80 for in given seconds.



prop text.jpg
 
Do you have prop_feathering_available=1 set in your aircraft.cfg file?
 
Hi,

First, you need to animate your prop blades so they react to the prop pitch.

Then I use the following code in a 2D gauge to move the prop blades during the feather/unfeather (for engine 1 of a twin). I do not show the code used in the posts above, but that can be included too.


Code:
<Value>(L:Feather Switch 1, bool) 1 == (A:GENERAL ENG PROPELLER LEVER POSITION:1, part) -0.24 &gt; &amp;&amp; if{ 1 (&gt;K:PROP_PITCH1_DECR) }
                (L:Feather Switch 1, bool) 0 == (G:Var2) 1 == (A:GENERAL ENG PROPELLER LEVER POSITION:1, part) (A:GENERAL ENG PROPELLER LEVER POSITION:2, part) &lt; &amp;&amp; &amp;&amp; if{ 1 (&gt;K:PROP_PITCH1_INCR) }

The first line moves the prop pitch to -0.24 (feathered, keyframe 100) when the feather button is pushed. The second line moves the prop pitch back to that of engine 2 when unfeathered. G:Var2 avoids prop pitch changes when no feathering is going on. I set that to 0 when the unfeather is finished.

Code:
                (L:Feather Switch 1, bool) 1 == (G:Var2) 0 == (A:GENERAL ENG PROPELLER LEVER POSITION:1, part) -0.24 &lt; &amp;&amp; &amp;&amp; if{ 1 (&gt;G:Var2) }
                (L:Feather Switch 1, bool) 0 == (G:Var2) 1 == (A:GENERAL ENG PROPELLER LEVER POSITION:1, part) (A:GENERAL ENG PROPELLER LEVER POSITION:2, part) &gt;= &amp;&amp; &amp;&amp; if{ 0 (&gt;G:Var2) }

Hope this helps,
 
Back
Top