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
Japmaco
Posts: 48
Been testing output the mag heading with the "Current heading" in the selection in mobi. And it works 0-180 degrees, after that it starts to act strange, showing -18-17 etc.

I looked at the transform and it looks right to the fsuipc values.

0580 4 Heading, *360/(65536*65536) for degrees TRUE.[Can be set in slew or pause states]

In other Words.
In Transform it should be like $*360/(65536*65536) and that becomes $*8,381903171539307e-8 and if shorten its like $*8.3819E-08

Issue.
It displays the current heading correct (ish) between 0-180, the it goes zoombie.

Any ideas?
2017-08-06 18:23
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Try

Transform: $*0.00000008381903171539306640625

That's what you have done already

The go to the COMPARE-Tab:

set the following values

if actual value is < 0 - where < is the first value and 0 the 2nd
then insert in the next field after then set $+360
and in the 3rd field type only $

This should solve your problem.
Grüße,
Stephan (Time: UTC+2)
2017-08-06 19:43
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Japmaco.

Please my friend use search engine if posible. This is explaned already in some topics !
For example here .... https://www.mobiflight.com/forum/message/4321.html

In short words....

The Transform is correct. We normaly use not a full math formula.... we calculate the steps and use a final multiplication. This is a relict from the first days of Mobiflight.... There it was not a transform field like today where you can use the full Expressions..... This time you only could make ONE Multiplication. So you have to shorten the hole calculation to ONE Multiplicator.

*****
Your Problem:
Stephan gives already the correct solution.

Just for information. This is a Signed/Unsigned Problem.
Every offset can have 2 Conditions.... Signed or Unsigned. this means its range is Only Positiv or it is split in 50% Positiv and 50% Negativ.
In Most situations this is not a problem..... But some Offsets are not use the Mobiflight Standard System.... In that cases you have to work with a "IF less then Zero, then $+ xxxxx" Technic.
(For example in the AP Altitude of PMDG) .... Again please use Search Engine.

Have Fun !
Good Luck !
2017-08-07 08:56
icon