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!
Hi Kevin.
Funny that your question come exactly now....
Mobiflight (since beginning 8 years ago and until now) make a truncate.
Means a Float is correctly read from Sim.... But is truncated after transform... ( No mater if Transform is active or not)
So a Value of 0,01 or 0,99 is behind transform ( so before the compare) truncate to 0 ..... 1,987 = 1 .... 2,0001 = 2 for example.
The funny fact. With next Version this is gone.... Then we push a float Value also through the Transform and compare by default.
Solutions:
1. Simply wait some days/weeks for MF v9.6 official release.
OR
2. Enable the BETA Programm in Settings. After next Mobiflight Start it will offer you the Download for newest Beta. Also this include that logic already.
OR
3. The Oldschool Solutions we do all the years.... Simply "multiply" in Transform, or do the needed compare there.
e.g.
Value goes from 0.01 to 1.00 .... Transform : $*100 result now in a number of 1-100 and then you can Compare like if Value= 50 THEN 1 ELSE 0
Or you say in Transform if($=0.5,1,0) Would do the same without need the compare anymore.
A last easy workflow.... You can also change the unit typ in the Variable.... So you not read a 0.01 to 1.00
In FS2020 unit typ "percent" gives 0-100 .... "Percent over 100" gives 0.0 to 1.0 .
Hi,
I'm pretty sure that's the same problem. I'm getting hte wind velocity and get a decimal. The problem is that the output is also a decimal. I need an integer. Is there a transform which does that ? I tried int($), rnd($), round($), trunc($). None work.
Do I have to wait the next version ?