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!
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.
I have most of the functions I would like to use hardware for set up and working, but there are 2 that I just can't make work.
Many of the event ID's that I had working in FSX wouldn't work in XP11, so I set those functions up with keypresses within XP and set Mobiflight to send those keypresses. Most of them work great, but I can't get the altimeter setting and OBS adjustment to work with Mobiflight. I set the keypresses up in XP, and when I press the keys I get the expected action. When I have MF send the keypresses, for those 2 items (altimeter and OBS), nothing happens. In the MF debug window I can see that MF is executing the action, but for some reason it's not working within XP.
--I've changed the keypress assignments, but even though they all work with the keyboard, none of them work with MF.
--I've tried using the EventIDs, but with the same result.
--I've tried assigning the keypress for the altimeter to another rotary that I know works (like radio tuning), but still nothing.
The really funny thing is, when I turn the rotary encoder the sim 'clicks' like it's doing something, but nothing is happening.
I've verified that XPUIPC is running on the computer and working in XP, and that I have the correct keypresses programmed in. Any suggestions or thoughts about what might be going wrong?
Many of the event ID's that I had working in FSX wouldn't work in XP11, so I set those functions up with keypresses within XP and set Mobiflight to send those keypresses.
Worng! ALL of the Events won´t work, cause Xplane / XPUIPC simply not support EventID´s .... those are a Feature for FSX/P3D Only !
****
--I've changed the keypress assignments, but even though they all work with the keyboard, none of them work with MF.
--I've tried assigning the keypress for the altimeter to another rotary that I know works (like radio tuning), but still nothing.
Right Idea....
So by using the other Encoder you confirm Hardware is working and there is no Problem.... BUT Do you make the most important Test ?
Do you set the Altimeter to a Keypress, that was Confirmed Working before on a other Spot ?
E.g. if your Radio Encoder uses before "A" and "B" for the turning..... What happen if you now set "A" and "B" for the Altimeter ?
I want to know if maybe the used Key is the problem.... E.g. if you always use "STRG+xxx" and now you try "SHIFT+xxx" So please Confirm..... Altimeter also not work with a Key Kombination, that still work on a other Point already!
******
The really funny thing is, when I turn the rotary encoder the sim 'clicks' like it's doing something, but nothing is happening.
This is interesting !
Maybe you get struggle in case the System work different here.
A "Real" Keypress include a Press and a Release .... A Emulated Keypress is pretty different.
So for example its possible that Xplane say.... By Keypress simulate the Klick Sound and by the Release of the Key simulate the Change of Alt.
Means if our emulated Key only offer a Press and no Release then you get in trouble.
********************
SOLUTIONS:
1. Give it a Try with "ADMIN MODE" ( For both Mobiflight and the Sim )
Often Admin Mode is the solution in KEY Sending Problems.... Admin Mode change the Windows internal behavours here.
2. Use "Offset Inputs" instead of your Key Presses.
I not know if you use a AddOn and if the Standard Offsets work.... So give them a Try!
E.g.
0C4E 2 NAV1 OBS setting (degrees, 0–359) .....
0330 2 Altimeter pressure setting (“Kollsman” window). As millibars (hectoPascals) * 16
Means.... You not simulate a Event ... You write directly to the Value !
(If you use a AddOn ..... Maybe you need to include the needed Datareffs by hand into the XPUIPC File !!)
3. Use VJOY ! ( NOTE: Vjoy is currently broke.... So this option is a idea for the future when we BugFix it)
Here you can simulate a Virtual Joystick Aktion via Mobiflight.... And you can Assing in Xplane the Function to the Joystick Button.
Same way as you do wwith the Keys for now.
4. Use a Joystick Controller
Try if you can assign the needed things to a Joystick Button for testing (within Xplane) Simply use your current joystick and test it.
If YES .... Then you can buy a Joystick Controller and wire your problematic Elements to it....
Man, I just typed a fairly lengthy response and it got obliterated when I hit 'Post reply'. I'll try to remember it all.
First of all, thank you for your help. Using the offsets did the trick.
Second, I went through the math to use the offset for the altimeter setting, so maybe I can save someone else the trouble. The transforms to use are $-5.4176 on left and $+5.4176 on right.
Third, I can't get the CDI to work correctly, I'm hoping you can help me out with that. Here are my transform statements: if(0,359,$-1) on left and if(359,0,$+1) on right. When I twist right it jumps to North. If I twist left from there it jumps to 015 degrees (the wrong direction) and then behaves normally. Is there something wrong with the transform statements, or have I missed something else?
Thank you again for your help.
Steve
(I'm copying this to the clipboard this time in case the computer is waiting for me to make the same mistake twice in a row.)
1. Forum issue.
Trust me.... this happens to me also a lot of time! Specially cause my postings often are verry large!
This is a Server Time Out. As i know we can not improve this. Simply a bad feature of this old Forum Software.
If you need longer time to write something.... e.g. if you make testings on the other hand.... Then its recommend to mark and copy the text to Dashboard.
Means if the issue happens you can simply go back , insert it and send it again.
I think this happens ~~30 minutes after starting to write a posting.
2. Math in Altimeter.
I wondering.... Not know this Factor and make no sense to me. But maybe XPUIPC is different here.
I think you talk about Inches of Mercury out of the HpA .
But otherwise this offset is a Integer.... So Sending a Float Value will not have a effect normaly !
Whatever also the recalc to inches should be not 5.4176 more like 4.7248
BUT: If it work for you.... Not care about.
3. Wrong syntax.... You not locate the IF Value.....
You use : if(0,359,$-1) WHAT is "0" related to ? It must be related to the Configs Value of that Offset. And thats always Dollar "$"
So correct Syntax is LEFT: if($=0,359,$-1) and RIGHT : if($=359,0,$+1)
Ah! Thank you again. I figured I must have screwed up the syntax somehow, but I was tired and I didn't spot it.
About the altimeter offset. The documentation states that the value is in mb*16. I googled the conversion from mb to inHg and got 33.86. I multiplied that by 16 to get 541.76, then divide by 100 since I want each click to be 0.01 inHg, which gave me 5.4176. Where did I get the math wrong?