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

Locking a Constant Speed Prop?

Messages
10,163
Country
us-arizona
Hey all,

We are modeling the FlyBox PR1P prop management computer in the little Dynamic.

The FlyBox is pretty sophisticated and features a 'Manual/Auto' switch that locks the prop, great in emergencies.


My question is; How could you write a code that would 'lock' a constant speed prop? It would need to 'over-ride' the settings in the FlyBox. As it is now, it incorporates a lever for prop pitch increment/decrement (knob actually) and then a RPM settings toggle (up, down toggle). The 'lock' or manual setting would probably set the prop to full pitch, if I am correct, as like a normal take-off prop lever in a standard small plane. My question is, how could it be written to 'over-ride' the system?


Possible command sequence
* adjustable if Manual Lock is not on, otherwise with Manual Lock 'on' then prop pitch is 100%.


Can that be done?
 
Last edited:
Hello Lionheart-Bill (got many Bills here ;) )

I've just been working a few days ago on a module that allows to set throttle position to a fixed value, while (approximately) keeping track of physical throttle lever position.
Attached.

Maybe you could adapt this to control Prop lever - have prop lever controlled in a normal way when in auto mode, and set prop lever to 100% when in manual mode, while keeping track of where the physical prop lever is so you jump back to the correct setting when manual mode is disengaged.
Note: There is some jumping of the prop lever if you have a visual throttle quadrant modeled, so you may want to display the physical prop lever position (L: variable) on the throttle quadrant instead of the A: variable. But that's fine-tuning...

No solution how to increment/decrement prop pitch in manual mode though.

Hope that fits your requirements.

Gunter
 

Attachments

Last edited:
Many thanks Gunter,

I'll check that out.

From what I see on the manual for the FlyBox, you 'can' tune the prop pitch manually, but you can go to locked pitch for emergency purposes. My thoughts were that the gauge could go to a locked in setting, like full prop pitch as like on take-offs, and then you could manually adjust it if needed. Only thinking out loud here.

Very interesting that something does this now.



Bill
 
Another thought, on how to increment/decrement prop pitch in manual mode ...
PROP BETA:index Prop blade pitch angle
may return prop pitch angle. I've never used the variable, so can't tell with certainty, but the description sounds like.

In manual mode maybe a feedback loop could be used to adjust the prop lever position (>K:PROP_PITCH_SET in such a way that the prop pitch is adjusted to and kept at a specific value that can be set by the rotary knob?
You'd have to program something like a PID logic (at least the proportional part) to move the prop lever to the position which just gives the required prop pitch.
Probably messy to get to work reliably, but if you really want it may be worth a try.

Just as a note - actually I have developed the throttle lever limitation module for a very similar use - to limit MP of the plane to a certain value.
My first try had been with just such a simple feedback loop, but it didn't work reliably (throttle lever jumping around too much). I'm doing it at the moment with a simple lookup table for throttle position/altitude/MP, which is easier and works well.
 
Last edited:
There is no easy way to set prop pitch directly.
K:PROP_PITCH_SET and it's derivates only set the prop lever position respectively rpm but not the actual prop pitch.
FSX's constant speed governor will continously adjust prop pitch to maintain the selected rpm.

To read out the actual prop pitch use the "A:Prop Beta:index" variable, that'll show you how nicely the pitch is actually jumping around.;)

You can come up with a math based on a combination of airspeed, manifold pressure, rpm and pitch lever position (using an L:var for the lever) and set the K:PROP_PITCH_SET from there. Basically you would try to reverse the stock governor's math. If you've done it right the prop beta will only show a change as you dial the lever.
....or use SimConnect. :D
 
Last edited:
Back
Top