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
crazypilot_uk
Posts: 30
Hi,
I'm looking for a little help with the calibration of the roll on my artificial horizon gauge, I'm using a servo to drive the mechanics. I have assigned FSUIPC offset 2F78 and I have the servo setup and working under the display tab, testing the roll gives the correct movement on the gauge 45 degree roll left and right.

I just cant seem to get it to calibrate correctly when using with P3D, can anyone confirm under the display tab - display setting the min and max value ? I have at the moment 0 in the min and 360 in the max is that correct ?

I think one problem I have is the FSUIPC value displayed doesn't seem to run from 0 to 360 degree it shows 0 - 180 degree and then -1 thru -179, how do I configure this in the compare tab / interpolation settings ?

any help would be much appreciated.
2018-04-03 13:37
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

1. Find out correct offset.... Maby Yours.... Maby its 057C ( I not try out myself)

iconQuote:

2F78 Size 8 Byte FLT64 ...... Attitude indicator bank value, in degrees. Double floating point
format.



iconQuote:

057C Size 4 Byte INT Bank, *360/(65536*65536) for degrees. 0=level, –ve=bank right,
+ve=bank left




2. Find out how Offset workes...... Whats the Value in Straight Level...... whats the Value in a Left Turn..... And Whats the Value in a Right Turn.

3. Limit the Turning Range of your Servo..... should it show 180° or maby less ?? So define the Angle between max Left and Max Right in degrees and Limit this range in the Servo Settings on Display Tab

4. (OPTIONAL) I not know 100% if a Servo can handle negative Values.... You need to try out if your offset work with MINUS xxx Degrees.
If that NOT work then you need for example a Transform..... If Range is -180 to +180 then simply say $+180 in Transform Field.....
Now Lowest Point is 0 .... Middle Neutral Point is 180 and Top Point is 360 ( Instead of -180 - 0 - +180 ) So you have no longer negative values in the system !

5.(OPTIONAL) Protect Servo from Overdrive if needed..... If you Gauge should work for example from 90° Left to 90° Right BUT Offset show 180°to 180° Then a Value like 95 ° will turn your servo OVER the Endstop ( Cause you define 90° is full turn before).
In That case you need INTERPOLATION. Use for example 0 = 0 ...89 = 89 .... 180=90 .... Now Values from 0-89 are work normal.... All Over 90 ( Until 180) will be shown as nearly 90°.

*****
You see.... you first must figure out how Gauge should look like and work internal...... Then check how offset workes..... And Finaly think about a solution how you set the Servo to rebuild your planed System.

Please try out.... If not work tell us more details like angle of Gauge etc and your eperince how offset workes.... then i can help you with a setting.
Good Luck !
2018-04-03 23:20
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
NO.... A Book not exist :sleep:

But you can read all the information in the biggest book of the world (not the bible ;) ) I Mean the INTERNET
For example the Bank Indicator.... All you need is written above in my old posting ( Whatever it was not tested and the other user never confirm it work.... so you must try out)

About the basics....

Mobiflight is a tool where you not must be a full professional Programmer..... But Sure You must know some stuff to work with.
Its liek you drive a car.... You must not know how a Motor workes or how the software of control unit is programmed..... BUT you must know where the brake pedal is and what you do with the round steering element in front of you. :thumbup:

So for Basic useage like setting a LED you must learn nothing..... Just read 10 Minutes our Tutorial.
For more advanced stuff like a servo Controlled Bank Gauge a bit more knowledge is need.
Whatever AddOn you use.... and Whatever difficult your project is.... as more knowledge is needed.

For Mobiflight the most important things are knowledge about Math ! You must understand... Hexadecimal .... Binary and Decimal System. You must understand logic Operators like +-*/><=%! and you must know how a function work like IF THEN ELSE ELSEIF .
Finaly you must learn a "little" bit of programming Syntax. For example a IF Condition like above is in Mobiflight Transform field written like "if($=25,$+377,$/17)"
Here the SYNTAX is the important part.

Summary....
With google you can find a lot.... In this forum most things are already discussed.... Simply use Search or scroll through the topics.
If you have a specific Problem simply open a topic and ask for help !
Good Luck !
2019-07-01 10:02
icon