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
Luki117
Posts: 4
Hey,

Sorry, i'm not very familar with MF...

I run a rotary encoder on a bodnar board and use MF to set the EFIS ND Range for all my aircrafts (e.g.: Input: A32NX_EFIS_L_ND_RANGE_DEC <> A32NX_EFIS_L_ND_RANGE_INC)
But it dont work for inibuilds A310, because there are only presets with a fixed zoom factor. (e.g. A310 EFIS Range Capt 240)

Ist there a way to switch between all switch positions with a rotary encoder? Maybe with a precondition? (E.g.: when switch is on 60 switch to 120, when switch is on 120 switch to 240)
2023-07-25 11:26
Avatar
Luki117
Posts: 4
Noone an idea?
2023-08-01 10:43
Avatar
XPRoberto
From: Hungary
Posts: 65
Hi,
I don't have MSFS, but if you prefer a rotary encoder instead of a multi position rotary switch i would try to find a command.
So not writing the value, but using a command like EFIS RANGE INCREASE and EFIS RANGE DECREASE for the encoder movement.
If exists such in MSFS and A310...
----------------------------------------------------------------
Do you know that you can simplify: if($=1,0,1) ?
Use simply: 1-$ :)
2023-08-01 23:11
Avatar
Luki117
Posts: 4
As i said: I already use a rotary encoder. So EFIS RANGE INCREASE and EFIS RANGE DECREASE would work perfect (works also for my other aircrafts),but i cant find this commands for A310.

Dont know what you mean with this : if($=1,0,1) ?
Use simply: 1-$
2023-08-02 17:47
Avatar
XPRoberto
From: Hungary
Posts: 65
Ok, clear.
Sorry I don't have info on that specific aircarft.
The other thing is simply my signature to simplify MobiFlight life :)
----------------------------------------------------------------
Do you know that you can simplify: if($=1,0,1) ?
Use simply: 1-$ :)
2023-08-02 21:59
Avatar
Aeolus
Posts: 14
I don't think the software is able to read in which position a rotary encoder is, so therefore it wouldn't work. That would probably be different with a switch, but as far as i know a rotary encoder is only able to tell the software which way it is turned, but not the positions it's in.
2023-08-21 09:52
Avatar
Luki117
Posts: 4
I thought it might be possible to read the switch position from the plane, not the position from the hardware rotary switch.
2023-08-25 13:44
Avatar
aabhutta
Posts: 2
iconLuki117:

Hey,

Sorry, i'm not very familar with MF...

I run a rotary encoder on a bodnar board and use MF to set the EFIS ND Range for all my aircrafts (e.g.: Input: A32NX_EFIS_L_ND_RANGE_DEC <> A32NX_EFIS_L_ND_RANGE_INC)
But it dont work for inibuilds A310, because there are only presets with a fixed zoom factor. (e.g. A310 EFIS Range Capt 240)

Ist there a way to switch between all switch positions with a rotary encoder? Maybe with a precondition? (E.g.: when switch is on 60 switch to 120, when switch is on 120 switch to 240)


I am actually trying to make my FBW setup work, have a potentiometer that I was trying to follow the tutorial to implement the Range increase and decrease.
Possible you can share what works well for you using these variables?, since doing it for the first time so looking for the actual code I need to enter following the online tutorial by Captain-D
2024-04-24 23:17
Avatar
jaimeleon
Posts: 26
Kind of a very late response but here is the code to operate the range knob with an encoder...

LEFT
iconCode:
(L:A310_map_range_capt_switch) -- 0 max (>L:A310_map_range_capt_switch)


RIGHT
iconCode:
(L:A310_map_range_capt_switch) ++ 4 mIN (>L:A310_map_range_capt_switch)
2024-05-01 01:04
icon