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
sebpil
Posts: 41
Hi,

I am having a bit trouble with the MCP and speed settings.
My entire flight deck works perfectly and so does the autopilot with overspeed, underspeed etc. BUT there is a problem with the MACH reading.
Have noticed that the FSUIPC output sometimes to specific vales, many of them above .73 is not the exact number, the output value can be 0.74999999999999 and that sjould be 0.75. In this case the instrument does not show 0.75 it shows a strange value instead, something not even like the figure that FSUIPC gets as an output.

How to solve this?
The FSUIPC is not the perfect output source since they have forgot to program specific settings for this output. Is it possible to find a solution for this and to program either Mobiflight so it becomes correct or reprogram FSUIPC software?

The easiest way to solve this problem please.
Thank you and hopefully you have a good simulator time as am I at this point.
[Last edited by sebpil, 2018-12-27 15:23]
2018-12-27 15:18
Avatar
StephanHo
From: EDDG, Germany
Posts: 1867
Supporter
Hi sebpil,

try a formular into the transform line:

round($*100,0)/100

If $=0.749999 then you multiply it by 100 and you will get after the round function 75 and zero digits after the decimal. Divide this through 100. The result is .75.
Reference is this thread: https://www.mobiflight.com/forum/message/1604.html
Grüße,
Stephan (Time: UTC+2)
2018-12-27 20:05
Avatar
sebpil
Posts: 41
Hello

Problem is solved. Can only blame myself for the problem.
Made a wrong setting in Mobiflight on Compare section.
I wrote like this:
Round($/10.0)
and when doing so it was not possible to run mobiflight. First of all I just had this line: ($/10.0), and then it worked to run Mobiflight but with error.
Now I corrected it to:
Round($/10,0)

And now everything works great!
It stead of a decimal point I had set period and that was the entire problem.

Thank you for your support. Now I am very happy again!

/Seb
2018-12-27 20:12
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

Please remember this information for the future, too.

In the Mobiflight expressions Syntax ( That is used for everything like Transform, Compare, Precondition and so on ) there is a big difference between decimal ,,,,,, and point .....

In a Float Value there is used a POINT like 12.5 1.234 and so on. The DECIMAL itself is a part of the code. It split parameters for example.
A "IF ELSE" function for example looks like if($=1,100,200) Here the DECIMAL splits between IF,THEN,ELSE.
In the Round function it splits between Value,Diggits like Round($,1)

Also important.... A Command must be write corect.... "round" will not work. It must be "Round"
Good Luck !
2019-01-02 05:57
icon