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
analyticalcreative
Posts: 1
Hey

I'm new to the forum and to Mobiflight but I am tinkering with building dials and 7 segment outputs.

I was having trouble with the Heading Output Reading for autopilot using FSUIPC Offset with it coming out with all sorts of calculations. I have now worked out the correct formula which I hope will help:

I have seen many posts using the value of 65536.... this is not accurate due to the detents in the sim... for example the Flight Sim Value follow a pattern of :
  • 1 degree = 180 (0 + 180)
  • 2 degree = 364 (180 + 184)
  • 3 degrees = 544 (364 + 180)
  • 4 degrees = 728 (544 + 184)

...... and so on, alternating between 180 & 184 per each degree of change.

This means that the magic number to divide by is 65520

So... adding a comparison of:

IF CURRENT VALUE <0 THEN ($ * 360) / 65520 ELSE ($ * 360) / 65520 + 360

then add a second comparison of:

IF CURRENT VALUE = 360 THEN

Using the above will give you indents of 0 to 359 degrees and matches between the in-sim heading indicator on the FCU and the physical 7 segment LCD :thumbup: :-)

This may have already been cracked but I couldn't find this exact example elsewhere so thought I could add and contribute :lol:

Hope this helps

Simon
2024-04-04 00:08
icon