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
hd2010
Posts: 6
Hi. My motorized throttle quadrant project is still in work.for now the throttles input with usb joystickcontroler+poti and output with arduino and servos works well. Now i move on to the flaps. I use x-plane and the standard 737. for now i have no idea how to input the flaps lever position into x-plane. Maybe with an encoder and arduino? If anyone realized such a project then it would be nice to share how that was made

Thanks a lot
2020-06-26 21:26
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
I don´t know the XPUIPC System myself..... So you must check youreself if XPUIPC work same way. ( or a other user can confirm this for you)

FSUIPC ( FSX/P3D) have 3 Systems.

1. Preselected Axis.
Here the Axis of a Poti is used for "Flaps"..... Means in eample a B737 this axis is splitted in the needed Flaps Positions. Upper Point is Flaps 0..... Lower Point is Flaps 40
Here you must build the "nodges" in same way as used by the axis. ( positions are fixed by the software)

2. Custom Axis.
Here you build the nodges custom as you like them..... Finaly you split (on the software) the full axis into "areas" .... In easy word you define a point by moving the leaver to a point ( e.g. the nodge of Flaps 1) and then you define in FSUIPC that it should send the command " Set flaps to position 1°" always if leaver is moved to exact this position.
This need a calibration one time but finaly work 100% perfect.

3. Switch input.
Profesional Cockpitbuilder use a switch system. So a Leaver that have a spring that must be pulled to move the flaps handle. After reach a nodge you release the leaver and the spring pulled it into the nodge. Then it "press" a button that is mounted in the middle of the nodge. this press send a command to the Sim taht SET the Flaps to that position.
In easy words.... Here you not use a Poti.... You use e.g. 9 single Push Buttons !.

Please find out how XPUIPC work here..... then you know how to build it !
Good Luck !
2020-06-26 23:36
Avatar
hd2010
Posts: 6
Thanks for the fast answer.

You are right. The easiest way is to use a potentiometer. In x-planes joysticksettings i can generate a profile.....

For the 737 i made a encoder work as well. But to work perfectly alligned to the hardware notches on my throttle quadrant i have to redesign the positions of the notches according to the encoder switch positions. Which is possible but i decided to use the poti version.

I was thinking about to not use a poti because i also want to use the magknight 787. unfortunatelly this plane does not support an axis to control the flaps. Neither an encoder. I testet but the offset i used for the 737 dos not work with the magknight. Sadly. So the magknight 787 only accepts buttons for flap one noch up/down. I dont want to use a mouse....so maybe i will put switches on my quadrant just in case i fly the 787.

Mobiflight is such an awsome tool. So much fun to use it even for non electronic and programming pros.
2020-06-27 12:56
Avatar
SilenceTeam
Posts: 4
Hi Pizman
I have the same problem like post author and i decided to use method 3. Switch input.
I need it for PMDG 777 can You help me and give me an example , i already did my COM and TCAS with mobiflight, but i cant find eventsID for flaps position 1 to 30
Thanks in advance
[Last edited by SilenceTeam, 2020-10-19 21:14]
2020-10-19 21:01
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
iconSilenceTeam:


Hi Pizman
I need it for PMDG 777 can You help me and give me an example
but i cant find eventsID for flaps position 1 to 30



Simply open your 2 important files you pretty sure already have on your Computer!
1. Offsetmapping for PMDG777.pdf (Outputs)
2. PMDG_777 Event_IDs_SP1c.pdf (Inputs)

Then use SEARCH STRG-F
And there is all you need!

******

Output Mapping show....

iconQuote:

65B1 1 BYTE FCTL_Flaps_Lever 0 UP, 1 1, 2 5,
3 15, 4 20,
5 25, 6 30



So you NOW know the parameters and that those will exist !

Input Mapping show.....

iconQuote:

EVT_CONTROL_STAND_FLAPS_LEVER 70139
EVT_CONTROL_STAND_FLAPS_LEVER_0 74703
EVT_CONTROL_STAND_FLAPS_LEVER_1 74704
EVT_CONTROL_STAND_FLAPS_LEVER_5 74705
EVT_CONTROL_STAND_FLAPS_LEVER_15 74706
EVT_CONTROL_STAND_FLAPS_LEVER_20 74707
EVT_CONTROL_STAND_FLAPS_LEVER_25 74708
EVT_CONTROL_STAND_FLAPS_LEVER_30 74709



I never try out.... But pretty sure the first 70139 is the lever ITSELF..... Here a Write with parameter 0 ,1, 2, 3 and so on set to the positions like in the Output list.
The others are SET events..... Parameter HERE pretty sure MOUSE_FLAG_LEFTSINGLE 536870912
Good Luck !
2020-10-20 03:01
Avatar
SilenceTeam
Posts: 4
Many thanks, i got it
Have a good day
2020-10-20 13:52
icon