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
Doon1
Posts: 53
Is the output value only integers? I have a flight sim value that ranges between -1 and 1. The output only displays -1 or 1 so the servo swings from one extreme to the other without anything in between.

EDIT: Oops. nevermind. I can multiply the input by 1000 via "Transform". ($*1000)

2ND EDIT: Seem like it won't transform above $*50. Is there another way to get a higher level of precision?
[Last edited by Doon1, 2022-02-13 20:40]
2022-02-13 19:50
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Your basically correct....

Mobiflight internal "truncate" behind the transform..... Ironical whatever you use the transform or not.....

So for exmaple.... A raw Float Value of 3,0000001 is without enabled transform truncate to "3" .... So if you use e.g. Compare or interpolation.... It´s also "3"
For sure.... If value is 3,9999999 its also "3" !
So Mobiflight technical "ignore" all behind the decimal !

Also when you use Transform enabled, there is a Trunate "behind".

e.g, if Raw value is 3,33333 If you say $*2 then result is technical 6,66666 BUT FM only see "6"

***********
The key is a multiply..... e.g. 1,1234 is always "1" .... but 1,1234*1000 = 1123,4 so it´s "1123"
Means a Value that increase from 0,01 to 1,00 with 100 Stetps is normaly 0 or 1 .... With $*100 its now 001 to 100 with all 100 steps between.

********
The internal border.... Its the Value itself.
If a Value e.g. increase in sim only in 360 Steps ( like a Compas) we can multiply it by 1000, 5000 or 1000000. It not change anyore in case the sim itself only allow 360 Steps.
Good Luck !
2022-02-13 23:57
Avatar
Doon1
Posts: 53
Thank you for that. I think I have it working.
2022-02-15 01:45
icon