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
TheIrishAviator
From: Ireland
Posts: 11
Hi all,

I recently made the C172 Trim wheel with a rotary encoder, 9g servo and my 3D printer from a file I got on thingiverse.

I’ve got the servo and trim wheel working in the simulator using MobiFlight and I’ve got my rotary encoder set to 4 detents per cycle however I have to spin my physical trim wheel very far in order to get it to move a little bit in the simulator.

Doesn’t anyone know how to speed this up?

Thank you

Seamus
2021-03-22 17:18
Avatar
RoystonS
Posts: 2
I've just assembled what's probably the same thing (this one? https://www.thingiverse.com/thing:4290141) and am seeing the exact same behaviour as you describe. I've tried different values of 'detents per cycle' and get strange laggy behaviour with things other than '1 detent per cycle (00)'.

Other things I've tried that haven't worked:
  • Setting a parameter other than 0 on the ELEV_TRIM_DN/ELEV_TRIM_UP events (in the hope I could trigger multiple bumps)
  • Using an action of 'FSUIPC Offset' with an explicit offset of 0x2EA0, value type float and size 8 bytes. I can set it to an absolute value, e.g. 0, so this write operation does work, but I can't figure out how to set it to a _relative_ value. I have tried defining a config reference (e.g. '#') pointing to the current value of 0x2EA0 and setting a value of (#+0.005) but that doesn't appear to work.
2021-04-04 02:07
Avatar
RoystonS
Posts: 2
Captain Bob doesn't appear to have any difficulties here: https://www.youtube.com/watch?v=f0T_il3yWhQ. That suggests that it's certainly possible to send lots of 'ELEV_TRIM_DN' rapidly and have them work straightforwardly. It may be that his encoder sends more signals for a particular rotation, but I'm not sure that his encoder is sending 5-10x as many signals?
2021-04-04 02:49
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi Guys

At first... Playing with the "Number of Detents" System make no sense....

You got a Encoder that is one of the 3 Typs ( 1:1 , 1:2 or 1:4 )
So there is only one correct setting here related to the typ of Encoder you use! The other occure in wrong inputs !

About Speed in case of MF.

1. You can try to increase the FSUIPC Polling Rate. Whatever this is just marginal cause finaly FSUIPC is the point you get in trouble if too much actions occure.
2. DISABLE Logging Mode ! Logging while a Flight is bad.... This is only to find issues while building. The Logging mode extremly slow down Enocder Inputs !


About Solution:

The key question is what AddOn you use.... Cause each can got own systems here.... Means there exist e.g. in a special AddOn a special Offset/Event for that.
For example PMDG Events have the posibility to increase Speed/Value much higher as longer you turn the Encoder.

So..... You should "rethink" your Input Typ. There exist some different Input Typs for the Elevator Trim. Simply try another one.
E.g.check 0BC0 .... 3338 .
Also play with the value.... The EVENT have only one predefined Step you can do..... with Offsets you can do more.
Like $+x and $-x ..... Try out what you can use for X ..... Like in Altitude: $+100 increase by 100ft if you use $+5000 it increase by 5000!
Good Luck !
2021-04-04 17:05
icon