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
parvazi
Posts: 12
Hi All,

I am trying to build a trim wheel using cheap encoder modules.
I have managed to get it working, but the ration of rotation does not match between my trim wheel and the sim.
if I turn the wheel for one full turn, it barely move for 1 dent in the sim.

I have already set the encoder to 4 dent per turn.
logging is off
using FS2020 - standard Cessna 172 steam gauge
using event IDs: ELEV_TRIM_UP and ELEV_TRIM_DN

any solution to fix the ratio?

Regards,
Ali
2021-01-23 17:38
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
The Event pretty sure execute a premade Action. It inc/dec the Trim by a hardcoded range. So if you for example need to click the virtual trim wheel 100 times to get a full resolution then your input also must send 100 Inputs per 360° turn ( Note this are example numbers i not know if its 10, 30 100 or something else)

The Encoder have a fixed mechanical detent number.... Some got 15,20,24 or so. Means the Number of commands you send with a 360° turn is related to this mechanical specification.
( Change the 1:1 1:2 or 1:4 settings is wrong. These must be correct used for your typ of Encoder..... This is NOT to change number of signals as you like)

**************

To solve....

Mechanical. If you need e.g. 60 Signals in Sim but the Encoder got 20.... Then you can use a 3:1 Cogwheel Gearbox.... Means 1 Turn of your wheel will turn the encoder 3 times.
NOTE: If we get verry high here may we get in trouble..... FSUIPC and Mobiflight can not send a high number of signals within a verry short time ( fast turning).

Software:
Check if there exist a Offset in FS2020 for the Trim Axis position..... In P3D it was e.g.
iconQuote:

0BC0 2 Elevator trim control input: –16383 to +16383



So you could use instead of the hardcoded event a Offset write here.
Find out ( by reading this Offset) what value change happen if you turn the virtual wheel 360° . Lets say e.g. it change by "650"
Then count the Inputs from your encoder.... Lets say 20 Detents. .... Means 650/20= 32,5 ~~32 So each detent must change the Offset by 32 (example) to get the same situation like in the Sim virtual wheel.
So you use a Config that say.... On Left .... Offset 0BC0 Value $-32 On Right $+32 .

NOTE... Again example Values.... You must calculate by the correct Offset Values and your number of Encoder detents yourself !!


I hope this helps !
Good Luck !
2021-01-23 19:11
icon