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
portanav
Posts: 6
Is their any way to add a delay to servo activation with MF?

I want change my present servo interface (opencockpits) which uses sioc to activate my starter switch (to OFF) after 50 seconds has elapsed, replacing it with an Arduino Mega. Can this be done with MF?
Best regards,
Michael.

Hardware: i7-6700, 16Gb Ram, 2xSSD,500Gb, GTX1060-6Gb.
Sim: P3Dv4, Prosim737.
2019-09-16 19:45
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
NO

A Timer Function is basicly not possible with Mobiflight.

Improvisional solution is to write a Lua Script that do the SLEEP/WAIT delay and write "result" to a Offset that finaly controll the servo via Mobiflight.

BUT !!!!!

Summary this is no solution for your situation..... For Starting switch a "timer" is no good idea!
For example if you forget to set the Packs to Off/Auto .... Or you forget to set the Fuel CutOff switch to ON..... Or Simply a Mailfunction is active and compressor is broke......
Whatever of these situations happen.... Your switch will swap to OFF after xx seconds.... (Whatver Engine is NOT running or virtual switch is NOT swap back)

So.... If you think about a mechanical controll of Real Knob (Whatever with a realistic Solenoid or a Servo solution) .... You should not plan for a "timer". You should use the status of virtual switch and maby the RMP of N1, N2 ... Temp EGT , Position of Fuel Cutoff and so on as "indicator" !! Thats more realistic and also much more easy.
Good Luck !
2019-09-17 02:59
Avatar
portanav
Posts: 6
Thanks for the reply, and info. However, the Boeing B-737 operates in that manner; the starter switch deactivates at 51% N2(?), approx. 50 seconds after engaging the starter switch, hence the timer.

I'll just have to continue with what I am using at present (opencockpits and SIOC).

Thanks.
Best regards,
Michael.

Hardware: i7-6700, 16Gb Ram, 2xSSD,500Gb, GTX1060-6Gb.
Sim: P3Dv4, Prosim737.
2019-09-17 09:28
Avatar
DocMoebiuz
Moderator
From: EDSH, Germany
Posts: 1516
Is N2 available as Offset? If yes, you can use it together with the current switch position as criteria to activate the servo.
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-09-17 14:44
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
As you said.... The Switch swap back in a special condition..... Eg. 51% N1

So why using a "timer" of 50 Seconds if you alo can make a config that ay "If Switch is in GRD Poition and N1 is greater then 51% then move Servo to OFF Position"

I don“t know your AddOn Aircraft. For PMDG we done this already.... There it is posible.
Good Luck !
2019-09-17 17:03
Avatar
Aalweber
From: near EDHE
Posts: 11
Supporter
Hello, not the same Problem/Question, but quite equal:
as Pizman82 said .... A Timer Function is basicly not possible with Mobiflight. ...
but is it in Mobiflight possible, to add a delay to a function or movement?
For example: Hans Hartmanns CRJ moves the flaps smooth from one
position to another ( P3D ), my servo jumps like a switch from 0 to 15 to 25
and so on. That looks not very realistic in my Home-Cockpit ( Autobrake-Gauge ).
.. and by the way ... after 6 months working with Mobiflight and Arduino,
I'm very very happy - great work and great support :thumbup:
Greetings, Aalweber
2021-03-30 17:28
icon