Ok, found the first step. I had to switch Spad.next to Beta version to get midi support.
Could you please, from SPAD.NEXT, print the documentation you used, to use it as en example ?
(device â device settings â summary â create documentation for only this device) ?
Hey guys, thanks for the awesome work everyone has done so far. I am also using âX-Touch-Mini-FS2020.exeâ method and I spent better part of today messing with the configuration, trying to bind all controls for my Mooney and this is what I have so far: (Edit 1: this is the current setup that I have settled for)
I am struggling to find event id for âRadio Masterâ and âElev Trimâ buttons, among others. I havenât started playing with AP yet, but I am sure that Altitude Preselector will be an issue as well.
Any idea where I can find even ids for these (and really all Mooney) buttons?
PS: itâs awesome feeling controlling Garmin and COMs and NAVs via X-Touch Mini 
Edit 2: My current config can be found here if anyone is interested: M20R - Pastebin.com
It seems âindex 4â is defined twice with different vars?
You are right! Yeah, I spent almost whole of Sunday configuring this and looks like my brain and eyes were very exhausted at the end 
The 2nd âIndex 4â should be âIndex 12â. Will fix that later, thank you.
ok, so I kinda fixed my issue by deleting the bindings for the engine master and mode switches on my throttle. Rest of the throttle works, and with the x-touch mini I can also adjust everything smoothly by 1 or 100 increments.
Sad that itâs not a great solution and I have to sacrifice some realism using those switches but since I only use them once/twice I have to live with it for now, I guess.
wow ⊠really impressed when i saw your video clipâŠI have been using lordys axis and ohs and cant get half the things that youve managed to get workingâŠI dont suppose youd like to share with a little instruction set on how you achieved which a few weeks ago i thought was impossibleâŠ
i couldnt even get the script that axis and ohs exported out onthtis site and uploaded onto flightsim.to for others to see.
cheers again
H
This solution looks awesome.
I hope someone can create a gui for mapping,
because editing json is not comfortable
BTW: i have tested it with the FBW A32NX and it works great for the predefined functions
Big advantage to vJoy Solution: Button lights show state f.e. of FD
Would be great when someone could brief document the JSON
file in the github wiki for this project, i am sure there will be more
people finding interest in it
For this the Fader has to be set to max 1 in the behringer editor ?
Hi
Im using X-Touch-Mini-FS2020, and are having trouble setting it up.
Im flying in C172 G1000, and have set up some of the controls on the X-Touch, but I cannot access the G1000.
I do like this:
{
"index": 12,
"event_press": "G1000_PFD_SOFTKEY12"
},
But when pressing the key, I get this error:
on_note_data BTN: 12
Traceback (most recent call last):
File âsite-packages\mido\backends\rtmidi.pyâ, line 171, in _callback_wrapper
File âmain.pyâ, line 50, in handle_message
File âpushbutton.pyâ, line 63, in on_note_data
File âeventqueue.pyâ, line 37, in call
File âeventqueue.pyâ, line 27, in call
TypeError: âNoneTypeâ object is not callable
Exception ignored in: ârtmidi._rtmidi._cb_funcâ
Traceback (most recent call last):
File âsite-packages\mido\backends\rtmidi.pyâ, line 171, in _callback_wrapper
File âmain.pyâ, line 50, in handle_message
File âpushbutton.pyâ, line 63, in on_note_data
File âeventqueue.pyâ, line 37, in call
File âeventqueue.pyâ, line 27, in call
TypeError: âNoneTypeâ object is not callable
on_note_data BTN: 12
Seems like it is for everything about the G1000
Am I missing something?
Thanks
Michael
Did you copy the Mobiflight event module as I described in my post about 19 days ago
Also covers how you reference them in script like for GN430
{
âindexâ: 9,
âevent_upâ: { âeventâ: âMobiFlight.AS430_RightLargeKnob_Rightâ, âtypeâ: âmanualâ, âvalueâ: 1 },
âevent_downâ: { âeventâ: âMobiFlight.AS430_RightLargeKnob_Leftâ, âtypeâ: âmanualâ, âvalueâ: 1 },
âevent_pressâ: { âeventâ: âMobiFlight.AS430_RightSmallKnob_Pushâ, âtypeâ: âmanualâ, âvalueâ: 1 }
},
Hi can I ask since Iâm getting myself more confused by the second in my attempt to be able to control nd range and mode knobs âŠis there no way to do this with axis and ohs âŠwill it only work using mobiflight.
Cheers
Folks
I am trying to implement a button that zeroes the elevator trim so that on handoff from AP you start with a neutral elevator surface (hate having to switch to external view just for this). I tried this based on examples above but itâs not quite right:
{
"index": 8,
"event_press": { "event": "AXIS_ELEV_TRIM_SET", "type": "manual", "value": 0 },
},
What am I doing wrong?
Apologies I am very new to this and only tried X-Touch-Mini-FS2020 and it seems to click with me and was free so not looked at anything else. Others in this forum, use axis and ohs with great success, so hopefully can help you.
Should it be zero or another value is all that I can think of you need to set the trim to level flight.
Cannot try I am afraid to see if I can experiment, FS2020 gets about 80% through loading and crashes to desktop. I think it is trying to logon to something. Uninstalled and reinstalled the whole 125Gb and still does it, so going to do a complete reinstall of windows and see if any joy. Gutted as not had any real issues with FS2020 before.
I think there was a auto windows update, but no FS2020 update??
The quoted range is -16383 to +16383 so I think zero would be zero. Hope you get your CTD sorted soon!
Hi guys,
can someone explain how the conditional events like in the Mooney file here work, where
can i find a description of the possible code for the json file?
{
"index": 3,
"event_up": "VOR1_OBI_INC",
"event_down": "VOR1_OBI_DEC",
"event_press": {
"type": "condition",
"event": [ "{% set heading = (data.get_simvar_value('HEADING_INDICATOR') * 180 / 3.14) | round %}",
"{{ data.trigger_event('VOR1_SET', heading) }}"],
"description": "Set CRS1 bug to current heading"
}
And second question, how can is set simvars like KOHLSMAN_SETTING_STD
directly when there is no toggle event ?
Regarding this, I donât see an Event ID with such a name (Event IDs).
This is what Iâm using for setting altimeter, if thatâs what you are looking for:
{ "index": 1, "event_up": "KOHLSMAN_INC", "event_down": "KOHLSMAN_DEC", "event_press": "BAROMETRIC" },
But there is âKOHLSMAN_SETTING_STDâ in âconfig.schema.jsonâ file, so I guess you could read it from MSFS.
This is how I understand that particular âevent_pressâ:
It looks like it sets the variable âheadingâ to âHEADING_INDICATORâ pulled from MSFS, multiplies it by 180 and divides it by 3.14 and rounds it. Then sends âVOR1_SETâ command with the value of variable âheadingâ.
I assume there is a logical difference between how âHEADING_INDICATORâ value is stored and what MSFS expects to receive from âVOR1_SETâ, thus the need to multiple and divide. Otherwise you could just do âdata.trigger_event(âVOR1_SETâ, data.get_simvar_value(âHEADING_INDICATORâ))â.
But of course I could be completely wrong.
