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
fazli
Posts: 91
hi, i am find solution feed back force for my yoke.
b737 pmdg. i run p3dv4.
i am planning using stepper motor .i want build small size as proto type .i want to see can support or not.if run perfectly. i want to go scale size yoke and convert big volt stepper motor
any offset feed back yoke.
tq
2019-08-01 08:05
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
??? Feedback force ???

Do you mean a shaker like Stall warning or do you mean the yoke should move by itself if Autopilot is active ??

Basicly the 2 Elements must have a Offset.... Not try it if PMDG workes internal here but normaly this should be the Standard Offsets.

For testing use the FSUIPC Offset List.... Search for "Aileron" and "Elevator"
I not know what of the multiplle Offsets is correct.

Simply create a NEW Config..... Make for example 10 Outptu Configs..... NOT use a Device for all configs.
Then Read 5x Aileron Offsets and 5x Elevator Offsets ( On short view i think there are each 5 Offsets that "can" be the right one)

Then RUN Mobiflight and Sim.... Move your Joystick and check what offset is change. Then make a flight with Autopilot ON and make a Turn by change Heading on MCP
( So create a situation where the Joystick is not moved in center position BUT the AP move the virtual Yoke)

You must simply find out.....
What Offset show Real Joystick Position ..... What Offset show Position of Virtual Yoke ..... What Offset show position of the Virtual Rudders ..... Abd What Offset act with the AP.

With all that information you can finaly think about a system.

PROBLEM:

The key will be to get a situation whre you define to "override" the Inputs. If your Motor move the Yoke then the Potentiometers inside will also make a Input ( Like you move it by hand) ..... But those Inputs will "override" the Autopilot and disconnect it. You must find a way to write the "FlagBytes" that disconnect the Inputs of Axis temporary. BUT In Real B737 a moving of Yoke by hand SHOULD discconect the AP ( Take contoll in Emergency situation without manual disconneting) .
So this gonna be problematic..... It must be OFF for correct working..... But it should be also ON to simulate the Manual Override

( Same Problem we got in Throttle Motors and Trimmwheel) . Difficult to solve without verry advanced Hardware.
Good Luck !
2019-08-01 11:12
Avatar
fazli
Posts: 91
force feedback yoke like real b737.when out off trim yoke feel f heavy forve.
2019-08-01 21:04
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
As i know the internal Force Feedback System is not directly readable in FSUIPC.....
BUT It give you a lot if Values you can use for Calculation of those things.

https://forum.simflight.com/topic/73910-how-to-obtain-force-feedback-data-from-fsx/ Here Pete talk about.

******
Whatever i would say this get difficult with Mobiflight.
Here the Values you can get must be calculated ( with other values in a formula) BUT Mobiflight not allow us to combine multiple Offsets.

So there are 2 Ways.....

1. Maby you can make the whole Claculation in a LUA Script and finaly execute the calculated Controll Values for the Motors on a Offset.
Then you can read them With Mobiflight and controll hardware.

2. Write a own selfrunning Programm that read data from Sim, calculate it and controll Motors by a Arduino.

*******

I have no experience here and can´t give you a solution..... But on first view i think a external System (Way 2) is needed. Pretty sure you also need Inputs and Sensors on the Yoke..... So it should be work completly indipended.
Good Luck !
2019-08-02 13:54
Avatar
fazli
Posts: 91
leonardo board can handle motor brushed as force feed back.?
2019-08-06 01:29
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
In Case the Leonardo is not supported by Mobiflight this question is on wrong spot.

If you plan for a "Self build solution" with a Leonardo and a own programmed firmware and software that manage the data transfer you should write in a Cockpitbuilder Board or in the Arduino Playground forums !
Good Luck !
2019-08-06 14:59
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Hi there!

I would assume that it requires some logic to determine how much force your motors have to produce. I am not aware of any FSUIPC offset in the sim that would provide the necessary value at this point.

As pizman82 already said:
MobiFlight alone will probably not do it. You will need some kind of LUA script that is able to calculate the forces. You would then store these precalculated values in an Offset accessible to MobiFlight which then could read it and drive your motor.

Good luck with your project and keep us posted!
Have a great day!
Sebastian

MobiFlight - Simply build your own home cockpit for your favorite flight sim - MSFS2020, FSX, Prepar3D (FSUIPC), X-Plane (XPUIPC)
2019-08-07 21:40
Avatar
fazli
Posts: 91
Hi,
I find new solution. First upload leornad as joustick.
Second board using mega board as a force feedback.
Combine offset eleron elevator, airborne offset, speed knot offset, trim wheel offset and auto pilot offset. Configure offset in mobiflight output and run sim.
U can get value. Than try make coding script and upload at mega board
Drive dc motor depand on power watt dc.
2020-02-22 07:10
Avatar
Doon1
Posts: 53
Any luck with this? I am trying to do the same thing. I am able to read the flight surface force variables. They are Rotation Acceleration Body (X, Y, Z) I think? There are some others I want to try as well. If I can turn this into a PWM signal to control a motor driver it might work. Not sure if controller position would even come into play. All we need is the level of force on the flight surface. Once the force balances the controller is where it is.
You know. You may have the right idea with a stepper motors. I have a few small one that I used for gauges around here somewhere. gonna go see if I can get them to move.
2022-02-10 01:40
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

I can not tell you if somebody still build this meanwhile....

BUT

As you expect there was some significant changes within mobiflight, since this topic was opend !

1. MF meanwhile allow to handle multiple Values within one calculation ( the main problem in the past here).
So we can do something like ....
Read Variable A .... Read Variable B.... Read Variable C .... And in a 4th Config we use all this 3 raw Values and say something like a+b+c . THAT is possible today!

2. MF allow PWM Outputs.... In the past MF only allow Outputs of 0/1 (Bool) or the Servo/Stepper Stuff.
Today MF also include PWM output for some Special Pins..... Whatever it is technical for LED´s.... Why not use this for a "Force Idication"

**********
So Meanwhile i think the posibilitys grow up a lot.
But i can not give you a solution.
You should join our DISCORD.... And talk to the Pro Users.... Hopefully there are some ForceFeedback Advanced users who can support you.
If not.... Start the project.... find out WHAT values you need and how the outputs must calculate it and look like.
I will try to give you the needed formulas then !
Good Luck !
2022-02-10 02:41
Avatar
Doon1
Posts: 53
I’m gong to play with it this weekend. There are several offsets and variables that have to do with force and position of the primary flight surfaces. I was just thinking that using more than one would be ideal. So now I can try that. I’m thinking if I can turn force into a pwm signal and direction into a digital signal using Mobiflight, then I can do something with those values. Even if it’s to run an additional board that acts as the controller. The idea is still gelling, and I have no idea what I’m doing but I may figure something out.
Thanks for your awesome software!
2022-02-11 19:02
icon