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
hrings
Posts: 136
I have build the landing gear handle with 3 mcroswitches but I am unable to get to work with the EventID given.
Anyone that can guide me to the correct answer with which event id's to use and how to program them
HenningR
2020-11-17 10:30
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
Hi Henning,

for GEAR DOWN ON PRESS use EventID 66080 GEAR DOWN) with Parameter 536870912 (MOUSE LEFT SINGLE),
For ON RELEASE use EventID 74183 (GEAR LEVER OFF) with Parameter -2147483648 (MOUSE RIGHT SINGLE)

for GEAR UP ON PRESS use EventID 66079 (GEAR UP) and Parameter -2147483648 (MOUSE RIGHT SINGLE)
and for ON RELEASE use EventID 74183 (GEAR LEVER OFF) with Parameter 536870912 (MOUSE LEFT SINGLE)

So you only need two micro switches. Always if you release GEAR UP or GEAR DOWN you automatically switch to GEAR LEVER OFF. Works like an ON-OFF-ON-switch.
Grüße,
Stephan (Time: UTC+2)
2020-11-17 12:19
Avatar
hrings
Posts: 136
Thanks.
Can I ask another question or shall I make a new one?
I try.
I should restart connector after putting in a switch and then it would not start it comes with a fault as flws:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at MobiFlight.OrphanedSerialsDialog.updateOrphanedList()
at MobiFlight.OrphanedSerialsDialog..ctor(List`1 serials, DataTable dataTable, DataTable inputDataTable)
at MobiFlight.MainForm._checkForOrphanedSerials(Boolean showNotNecessaryMessage)
at MobiFlight.MainForm._loadConfig(String fileName)
at MobiFlight.MainForm._autoloadLastConfig()
at MobiFlight.MainForm._autoloadConfig()
at MobiFlight.MainForm.ExecManager_OnModuleLookupFinished(Object sender, EventArgs e)
at MobiFlight.ExecutionManager.mobiFlightCache_LookupFinished(Object sender, EventArgs e)
at MobiFlight.MobiFlightCache.<connectAsync>d__34.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MobiFlight.ExecutionManager.<autoConnectTimer_TickAsync>d__97.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
HenningR
2020-11-17 18:50
Avatar
hrings
Posts: 136
When I use as you told me. The gear goes from down directly to off position I am unable to move it to on.
I have tried both with the off switch active and deactivated.
When it came to the other fault, it seems to have connection with vers. 7.10.
When I reloaded 7.9.0 I was able to start the connector again
HenningR
2020-11-17 20:34
Avatar
StephanHo
Moderator
From: EDDG, Germany
Posts: 1867
Supporter
If MF does not load your mcc file after your last config then this config has an error.
Best way is to edit the mcc-file in an editor and remove this config. Search for the name of the config in the regarding section (input or output)
Grüße,
Stephan (Time: UTC+2)
2020-11-17 23:27
icon