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
Gman30000
Posts: 10
HI, does anyone know how to connect a servo for trim indicator in mobiflight for xplane direct?

Thank you.
2023-01-09 14:40
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

This can not be awnserd.... Cause every Aircraft can use different data source.
Also every Servo is different and you need to adjust your settings to your hardware.

Basically:
1. You need to find the correct Offset or Dataref where you can read out the position of the virtual Trim Indicator.

2. You must recalculate mostly this value.... to get a clean numeric positive number....
For example if Sim Value is between -20 (Full left) and +20 (Full right) then you would say in transform $+20 to get finally a number of 0-40

3. You must choose for your servo and find yout the needed rotation in percent to fit your gauge and finally you must set the MIN and MAX number based on the data you got.
Good Luck !
2023-01-11 17:43
Avatar
Gman30000
Posts: 10
Hi, the value seems to be. -1 to +1 so what would go in the transform box?

could you explain how to do number 3 please "3. You must choose for your servo and find yout the needed rotation in percent to fit your gauge and finally you must set the MIN and MAX number based on the data you got."

Thank you
2023-01-11 20:38
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconGman30000:

Hi, the value seems to be. -1 to +1 so what would go in the transform box?



That means its pretty sure a Float Value (Decimal) Cause else you would only have 3 States... -1,0 or +1
So i expect value is -1,00 to +1,00 with 200 Steps between ( e.g. -0,72 or +0,25)

Transform to get a clean Value ..... $*100+100
Means with *100 we get -100 to +100 instead of this Decimal Stuff.
With +100 we get sure all negatives (-001 to -100) is transformed to 0 or Greater.
So final Value is 0-200 now.

iconGman30000:


could you explain how to do number 3 please



I don´t know your Gauge. So i don´t know how you mount the Servo and if the range of the needle need the 100% Rotation of the servo (Mostly 180°)
You need to Test how far your servo must turn .... It start at zero Point (Left Corner for example) .... If it turn 100% ( Setting) does it exactly fit the other Edge of the Gauge.
If it override then you must reduce the Rotation in Percent..... Target: It must turn exact to the other edge finally.

At last.... USe MIN: 0 MAX: 200
Cause thats the Value we calculate.... Full Left =0 Full Right is 200.
Good Luck !
2023-01-12 20:26
Avatar
Gman30000
Posts: 10
Thank you, I will give this a try and see how I get on:)
2023-01-12 22:47
icon