MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
hermann2441
Posts: 38
Hello from Austria!

I built a flaps indicator with a servo.
It runs pretty good.

But: there are different values on different aircrafts.

Eg: PMDG 737-700 has values from 100, 200, 300 etc. for 0, 1,2, 5, .. 40
but Cessna 172 or CJ4 has 0, 2731, 4551 .... until 16383 (but I use 0, 15, 40 for this planes only)

Can I use a precondition for this case? I am not shure, how to!

Thanks and best wishes
Hermann
Best wishes:
Hermann
2022-12-02 10:14
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Sorry for late reply.

Yes you can.... By simple Math if its linear or by Interpolation if its non linear (as Flaps mostly are)

For example....

Lets say your "Output" to the Motor is a Vaöue of 0-1000 and you know e.g. 0 = Flaps0 .... 50 = Flaps 1 .... 124 = Flaps 2 and so on.

Then you can simply use INTERPOLATION and say there in your PMDG example Input Value 0 = Output 0 ..... Input Value 100 = Output 50 Input Value 200 = Aoutput 124 and so on.

******
If we talk on other gauges for a linear Value then Math is the key.... Lets say your Gauge is based on a Value of 0-1000 and the Sim Value is 0-16383 .
Then $/16.383 will result in a Value 0-1000 perfectly.
Good Luck !
2022-12-28 19:23
Avatar
hermann2441
Posts: 38
Hi and thanks!

Sorry for my delay too.
I found your answer today only.

Thanks for the great hint. I will test it asap.

Servus,
Hermann
Best wishes:
Hermann
2023-01-20 22:42
icon