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.

Go to page 1Go to page 012Go to page 2Go to page 2
Avatar
Joe_Snuffy
Posts: 20
I've been plugging right along with a few panels for the Aerosoft Airbus family. At this point I have done got working the com1, the gear switch and it's indicator panel, the brake fan switch, the auto brake panel, the flaps, main exterior lighting panel, and the APU main bus and start button.

This video shows most of that stuff functioning. https://www.youtube.com/watch?v=WdC0_5OJ6PY&t=5s

I've since started working on the FCU, which has been causing some extra issues, such as very fine detailed soldering, which I'm not great at, and 3D printing things that are bigger than my build plate. The soldering was the first hurdle, but currently I have a fully functioning display showing spd/mach, hdg, alt, and vs. However during this process I ran into this little glitch. I sent to info to Pete Dowson as well but thought I'd show y'all it just in case you had seen this before as well. Basically, FSUIPC spits out some random number at to specific headings depending on which way you are changing the hdg knob. The video will show a bit better than i can explain I think. Enjoy.

Strange output: https://www.youtube.com/watch?v=bB_gmUtw_nE

If anyone knows anything about this let me know. Hope to have the Whole FCU panel finished in the next week or so, then I think I'll be done as far as what I need for flying.
2020-06-08 03:12
Avatar
RydyB
Posts: 18
Joe, have you tried different planes? Do they all show similar behavior?

The parts I ordered are due to arrive this week. When they're in, this'll be the first thing I'm going to try and test.

I hope you get it sorted out.
Always have fun.
2020-06-08 09:01
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi

At first.... Mobiflight do nothing wrong here. If i understand the Video correctly then the issue is in FSUIPC or in the Lua Script ( means again if FSUIPC) .

You confirm with the Logging Window top right that the LVAR got the correct Value in the problematic moment.....
Otherwise you confirm the Offset got the wrong Value in that moment by the "raw Value" readout from Mobiflight.
In case you did the Input via Virtual Encoder we can also exclude a issue in the way Mobiflight would write the Offset cause you NOT use a Mobiflight Input here.

Your Problem:
I not see the script for heading..... But you show us the script for IAS and ALT..... And i can see the "offsets" you use in the Mobiflight Window.
These are mostly ORIGINAL Offsets like 07CC for the Heading !
This is completly wrong i think and occure maybe in your Problem !


Those Offsets are NOT empty and also not allowed for personal useage with scripts. Cause those Offsets are also used by internal FX/P3D Systems.
Your Aerosoft Airbus got technical a internal System for the Autopilot..... And that data is in the Lvars.... But the Sim itself same time also got a Autopilot that is not used but that is exist and supported by the Sim.
For example if you use the Aerosoft Parking Brake this act to the LVar.... But also write the Original Parking Brake Offset.

So i think your problem is simple that the Lua Script write Offsets that are also written ( in some cases) by the Simulator itself.

SOLUTION:
Change your Script and the Mobiflight Output Config for testing in HDG System to a real Free Offset ( e.g. 66C0 )
If my idea is correct this should solve the Problem !


EDIT:
To say it more clear..... If my idea is right then this is recommend also to all other elements. whatever your ALT System work currently. Its also wrong to use here 07D4.... I recommend to basicly NEVER use existing Offsets as Target of those Lua Scripts.... Always work with free offsets !
[Last edited by pizman82, 2020-06-08 11:02]
Good Luck !
2020-06-08 10:56
Avatar
Joe_Snuffy
Posts: 20
Thanks for the response, as I stated, I'm not concerned about this minor issue. I did run the same script using a free offset and as you expected it doesn't do it, when I change back to the original offset it does it again. However, when I'm not using the original offset 0x07CC, that offset does not change change at all, so it's not being used. Once I've finished with everything (I have a bunch of lights that will use free offsets) and know exactly how many free offsets I have left over I may change it to writing to one of them, for now this is working fine.

I noticed, after I posted that video, I had inadvertently scrolled the lua file so you couldn't see the scripting for the HDG function. Here it is.

iconCode:
-- Reads autopilot heading setting
function AP_HDG_Setting()
	Heading_Set=ipc.readLvar("L:AB_AP_HDG_Select")
	ipc.writeUW(0x07CC, Heading_Set)
end

-- check to see if Lvars have changed then call up the proper function
event.Lvar("L:AB_AP_HDG_Select",100,"AP_HDG_Setting")


Thanks again for the quick response, as far as I'm concerned this issue is resolved as it pertains to Mobiflight. :w00t:
2020-06-08 19:25
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Not care about the offset range..... We got many many more Offsets!

For example if you use your Airbus then you garantee not use a PMDG Boeing AddOn.
That means already the whole PMDG Offset Area is not controlled and can be used by your scripts.
Check the PMDG FSUIPC List..... Technical all Offsets there are free for you !
Good Luck !
2020-06-08 20:43
Avatar
Joe_Snuffy
Posts: 20
I did not know that, thanks, may give that a go if it becomes an issue.
2020-06-09 01:46
Avatar
Joe_Snuffy
Posts: 20
I've gotten the FCU section working pretty much as well as I need it to. Here you can see most of the thing functioning, I have one bad switch that I need to replace. And the push/pull function of the VS knob isn't perfected yet, but it does make the knob move, it just doesn't make the sim fly correctly.

Here is a quick video of it. Enjoy.

https://www.youtube.com/watch?v=FoVmZB6zcu0
2020-06-18 09:03
Avatar
thatchi
Posts: 181
Hi Joe. I am working on same aerosoft. Wonder if you can share your lua script and MF mcc files. Thank.
2020-06-18 13:36
Avatar
Joe_Snuffy
Posts: 20
Ok, took it out for a test flight. Still would like to get the VS push/pull to do what it's supposed to, but for now I'm happy that it at least animates the button at this point. Everything else seems to work correctly, although for some reason I can't get the Emergency EXIT light switch to go to the on position, but being able to move it to auto is good enough for me.

Here's the video of the flight. https://www.youtube.com/watch?v=gKMhnMcC6ho

iconthatchi:

Hi Joe. I am working on same aerosoft. Wonder if you can share your lua script and MF mcc files. Thank.



thatchi, I've seen some of youre scripts and things, you're way more advanced than I've done, but if you want my stuff for the FCU here's the LUA I use, I just auto start it in the FSUIPC.ini file.

iconCode:
--Output device functions here


-- Reads Autopilot Knot setting
function AP_Speed_Setting()
	Speed_Set=ipc.readLvar("L:AB_AP_SPEED_Selected")
	ipc.writeUD(0x07DC, Speed_Set)
end

--Reads Autopilot Mach Setting
function AP_Mach_Setting()
	Mach_Set_raw=ipc.readLvar("L:AB_AP_Mach_Select")
	Mach_Set=Mach_Set_raw*100
	ipc.writeUD(0x07E4, Mach_Set)
end

-- Reads autopilot heading setting
function AP_HDG_Setting()
	Heading_Set=ipc.readLvar("L:AB_AP_HDG_Select")
	ipc.writeUW(0x07CC, Heading_Set)
end

--Reads if the Speed/Mach button has been pushed then sets for precondition use
function SPDMACH_Toggle()
	SPDMACH_on_off=ipc.readLvar("L:AB_AP_SPDMACH")
	ipc.writeUB(0x66D4, SPDMACH_on_off)
end

--Reads if the HDG/TRK button has been pushed then sets for precondition use
function HDGTRK_Toggle()
	HDGTRK_on_off=ipc.readLvar("L:AB_AP_HDGTRK")
	ipc.writeUB(0x66D6, HDGTRK_on_off)
end

-- Reads autopilot Altitude setting
function AP_Alt_Setting()
	Altitude_Set=ipc.readLvar("L:AB_AP_ALT_Select")
	ipc.writeUD(0x07D4, Altitude_Set)
end

-- Reads autopilot Vertical Speed setting
function AP_VS_Setting()
	VS_Set=ipc.readLvar("L:AB_AP_VS_Select2")
	ipc.writeSW(0x07F2, VS_Set)
end

--Reads Autopilot FPA Setting
function AP_FPA_Setting()
	FPA_Setter=ipc.readLvar("L:AB_AP_FPA_Select2")
	FPA_Set=FPA_Setter*10
	ipc.writeSB(0x66D7, FPA_Set)
end



-- check to see if Lvars have changed then call up the proper function

event.Lvar("L:AB_AP_TOC_SPD",100,"AP_Speed_Setting")
event.Lvar("L:AB_AP_HDG_Select",100,"AP_HDG_Setting")
event.Lvar("L:AB_AP_SPDMACH",100,"SPDMACH_Toggle")
event.Lvar("L:AB_AP_ALT_Select",100,"AP_Alt_Setting")
event.Lvar("L:AB_AP_VS_Select2",100,"AP_VS_Setting")
event.Lvar("L:AB_AP_Mach_Select",100,"AP_Mach_Setting")
event.Lvar("L:AB_AP_HDGTRK",100,"HDGTRK_Toggle")
event.Lvar("L:AB_AP_FPA_Select2",100,"AP_FPA_Setting")



--Input device functions here


--Knob setting Hdg
function HDG_SET(offset, value)
	ipc.writeLvar("AB_AP_HDG_Select", value) 
end

--Knob setting SPD
function SPD_SET(offset, value)
	ipc.writeLvar("AB_AP_SPEED_Select", value)
end

--Knob setting MACH
function MACH_SET(offset, valueraw)
	value=valueraw/100
	ipc.writeLvar("AB_AP_Mach_Select", value)
end

--Toggle SPD/MACH display
function SPDMACH_SET(offset, value)
	ipc.writeLvar("AB_AP_SPDMACH", value)
end

--Toggle HDG/TRK display
function HDGTRK_SET(offset, value)
	ipc.writeLvar("AB_AP_HDGTRK", value)
end

--Knob setting ALT
function ALT_SET(offset, value)
	ipc.writeLvar("AB_AP_ALT_Select", value)
end

--Knob setting VS
function VS_SET(offset, value)
	ipc.writeLvar("AB_AP_VS_Select2", value)
end

--Toggle Metric/English display
function Metric_SET(offset, value)
	ipc.writeLvar("AB_AP_Metric", value)
end



--input checks for function activation

event.offset("66E0","UD","HDG_SET")
event.offset("07DC","UD","SPD_SET")
event.offset("66D5","UB","SPDMACH_SET")
event.offset("66D6","UB","HDGTRK_SET")
event.offset("07E4","SD","MACH_SET")
event.offset("3349","UD","ALT_SET")
event.offset("334D","SD","VS_SET")
event.offset("66D8","UB","Metric_SET")


--Push/Pull switches functions

--Knob setting Spd
function SPD_pushpull(offset, value)
	if (value==2) then
		ipc.writeLvar("AB_AP_SPDmode", -1)
	else
		ipc.writeLvar("AB_AP_SPDmode", value)
	end
end

--Knob setting Hdg
function HDG_pushpull(offset, value)
	if (value==2) then
		ipc.writeLvar("AB_AP_HDGmode", -1) 
	else
		ipc.writeLvar("AB_AP_HDGmode", value)
	end
end

--Knob setting Alt
function ALT_pushpull(offset, value)
	if (value==2) then
		ipc.writeLvar("AB_AP_ALTmode", -1)
		ipc.writeLvar("AB_AP_KNOBALT", 0)
	else
		ipc.writeLvar("AB_AP_ALTmode", value)
	end
end

--Knob setting VS
function VS_pushpull(offset, value)
	if (value==2) then
		ipc.writeLvar("AB_AP_VSAni", -1)
		ipc.writeLvar("FMA_Vertmode_act", 4)
	else
		if (value==1) then
			ipc.writeLvar("AB_AP_VSAni", value)
			ipc.writeLvar("AB_AP_KNOBALT", 1)
		else
			ipc.writeLvar("AB_AP_VSAni", value)
		end
	end
end


--PUSH/PULL switches input

event.offset("66E4","SB","SPD_pushpull")
event.offset("66E5","SB","HDG_pushpull")
event.offset("66E6","SB","ALT_pushpull")
event.offset("66E7","SB","VS_pushpull")




--Button Functions(FD,LS,LOC,AP1,AP2,ATHR,APPR)

--FD status
function FD_on_off(offset, value)
	ipc.writeLvar("AB_MPL_FD", value) 
end

--LS status
function LS_on_off(offset, value)
	ipc.writeLvar("AB_MPL_ILS", value)
end

--LOC status
function LOC_activate(offset, value)
	ipc.writeLvar("AB_AP_LOC", value)
	if (value==1) then
		ipc.writeLvar("AB_AP_LOC2", 0)
	else
	end
end

--AP1 status
function AP1_toggle(offset, value)
	ipc.writeLvar("AB_AP_AP1", value) 
end

--ATHR status
function ATHR_on_off(offset, value)
	ipc.writeLvar("AB_AP_ATHR", value) 
end

--AP2 status
function AP2_toggle(offset, value)
	APPR_check=ipc.readLvar("L:AB_AP_LOC2")
	if (APPR_check~=1) then
		if (value==1) then
			ipc.writeLvar("AB_AP_AP2", 1)
			ipc.writeLvar("AB_AP_AP1", 0)
		else
			ipc.writeLvar("AB_AP_AP2", 0)
		end
	else
		ipc.writeLvar("AB_AP_AP2", value)
	end
end

--APPR status
function APPR_activate(offset, value)
	ipc.writeLvar("AB_AP_LOC2", value)
	if (value==1) then
		ipc.writeLvar("AB_AP_LOC", 0)
	else
	end
end

--Baro standard status
function STD_pressure(offset, value)
	ipc.writeLvar("AB_MPL_Baro_STD", value) 
end


--Buttons with lights

event.offset("3341","UB","FD_on_off")
event.offset("3342","UB","LS_on_off")
event.offset("3343","UB","LOC_activate")
event.offset("3344","UB","AP1_toggle")
event.offset("3345","UB","ATHR_on_off")
event.offset("3346","UB","AP2_toggle")
event.offset("3347","UB","APPR_activate")
event.offset("3348","UB","STD_pressure")



--AP green light indicators for FD,LS,LOC,AP1,ATHR,AP2,APPR


-- lights up when FD is active
function FD_ind()
	FDyn=ipc.readLvar("L:AB_MPL_FD")
	ipc.writeUB(0x3341, FDyn)
end

-- lights up when LS is active
function LS_ind()
	LSyn=ipc.readLvar("L:AB_MPL_ILS")
	ipc.writeUB(0x3342, LSyn)
end

-- lights up when LOC is active
function LOC_ind()
	LOCyn=ipc.readLvar("L:AB_AP_LOC")
	ipc.writeUB(0x3343, LOCyn)
end

-- lights up when AP1 is active
function AP1_ind()
	AP1yn=ipc.readLvar("L:AB_AP_AP1")
	ipc.writeUB(0x3344, AP1yn)
end

-- lights up when ATHR is active
function ATHR_ind()
	ATHRyn=ipc.readLvar("L:AB_AP_ATHR")
	ipc.writeUB(0x3345, ATHRyn)
end

-- lights up when AP2 is active
function AP2_ind()
	AP2yn=ipc.readLvar("L:AB_AP_AP2")
	ipc.writeUB(0x3346, AP2yn)
end

-- lights up when APPR is active
function APPR_ind()
	APPRyn=ipc.readLvar("L:AB_AP_LOC2")
	ipc.writeUB(0x3347, APPRyn)
end

-- Space holder for preconditon Barometric settings
function inHgorhPa()
	HgPa=ipc.readLvar("L:AB_MPL_Baro_Unit")
	ipc.writeUB(0x66D9, HgPa)
end


--Indicator light triggers for AP

event.Lvar("L:AB_MPL_FD",100,"FD_ind")
event.Lvar("L:AB_MPL_ILS",100,"LS_ind")
event.Lvar("L:AB_AP_LOC",100,"LOC_ind")
event.Lvar("L:AB_AP_AP1",100,"AP1_ind")
event.Lvar("L:AB_AP_ATHR",100,"ATHR_ind")
event.Lvar("L:AB_AP_AP2",100,"AP2_ind")
event.Lvar("L:AB_AP_LOC2",100,"APPR_ind")
event.Lvar("L:AB_MPL_Baro_Unit",100,"inHgorhPa")





I'm not even sure if the .mcc would be helpful. This is that last one I had saved for the FCU and stuff.




iconCode:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MobiflightConnector>
  <outputs>
    <config guid="428166be-4fe1-411e-aa80-598c54b56b5f">
      <active>true</active>
      <description>AP Knot Speed</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x07DC" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="MobiFlight Mega/ SN-9" trigger="normal" ledAddress="AutoPLT" ledConnector="1" ledModuleSize="8" ledPadding="False" ledPaddingChar="0" ledDigits="5,6,7" />
        <interpolation active="True">
          <value x="0" y="0" />
          <value x="1024" y="1024" />
        </interpolation>
        <preconditions>
          <precondition type="config" active="true" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" operand="=" value="0" logic="and" />
        </preconditions>
        <transformation active="False" expression="if($=0,808,$)" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="#" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="§" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="#" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="#" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="#" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="4bd68883-7c72-4471-99d1-04395a50e872">
      <active>true</active>
      <description>AP Mach Speed</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x07E4" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" />
        <comparison active="False" value="0" operand=">" ifValue="(($/6.55)-1)" elseValue="808" />
        <display type="Display Module" serial="MobiFlight Mega/ SN-9" trigger="normal" ledAddress="AutoPLT" ledConnector="1" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="5,6,7" ledDecimalPoints="7" />
        <interpolation active="True">
          <value x="0" y="0" />
          <value x="1024" y="1024" />
        </interpolation>
        <preconditions>
          <precondition type="config" active="true" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" operand="=" value="1" logic="and" />
        </preconditions>
        <transformation active="False" expression="$/655" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29">
      <active>true</active>
      <description>AP HDG</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x07CC" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="MobiFlight Mega/ SN-9" trigger="normal" ledAddress="AutoPLT" ledConnector="1" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="0,1,2" />
        <preconditions />
        <transformation active="False" expression="($ * 360) / 65536" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="127bda9f-35ad-40b2-a520-d1f00b275156">
      <active>true</active>
      <description>AP VS</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x07F2" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="MobiFlight Mega/ SN-9" trigger="normal" ledAddress="AutoPLT" ledConnector="3" ledModuleSize="8" ledPadding="True" ledPaddingChar=" " ledDigits="0,1,2,3,4" />
        <preconditions>
          <precondition type="config" active="true" ref="7b8ef31d-dce8-41e1-836a-6e85185f6889" operand="=" value="0" logic="and" />
        </preconditions>
        <transformation active="True" expression="if($=0,80808,$*100)" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="830bf11b-5dc5-4c73-99e2-a35e49989c42">
      <active>true</active>
      <description>AP FPA</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x66D7" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="MobiFlight Mega/ SN-9" trigger="normal" ledAddress="AutoPLT" ledConnector="3" ledModuleSize="8" ledPadding="True" ledPaddingChar=" " ledDigits="0,1,2,3,4" ledDecimalPoints="1" />
        <preconditions>
          <precondition type="config" active="true" ref="7b8ef31d-dce8-41e1-836a-6e85185f6889" operand="=" value="1" logic="and" />
        </preconditions>
        <transformation active="True" expression="if($>99,$-256,if($=0,80808,$))" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="7c62d406-d685-4208-ae86-e6a38490585e" placeholder="B" />
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed">
      <active>true</active>
      <description>SPD MACH Toggle</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x66D4" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="MachPre" pinBrightness="255" />
        <preconditions />
        <transformation active="False" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="A" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="7b8ef31d-dce8-41e1-836a-6e85185f6889">
      <active>true</active>
      <description>HDG TRK Toggle</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x66D6" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="TRK Pre" pinBrightness="255" />
        <preconditions />
        <transformation active="True" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="7c62d406-d685-4208-ae86-e6a38490585e">
      <active>true</active>
      <description>AP ALT</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x07D4" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="MobiFlight Mega/ SN-9" trigger="normal" ledAddress="AutoPLT" ledConnector="2" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="0,1,2,3,4" />
        <preconditions />
        <transformation active="False" expression="$*3.28084/65536" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="29669a37-82d9-4207-b7d8-8e6aae7c476a">
      <active>true</active>
      <description>FD indicator light</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3341" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="FDind" pinBrightness="255" />
        <preconditions />
        <transformation active="False" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="d222684b-f074-40d9-b396-8c1a2b17912a">
      <active>true</active>
      <description>LS indicator</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3342" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="LSind" pinBrightness="255" />
        <preconditions />
        <transformation active="False" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="510d558f-d6ff-46b1-86af-5071c5cbe965">
      <active>true</active>
      <description>LOC indicator</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3343" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="LOCind" pinBrightness="255" />
        <preconditions />
        <transformation active="False" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="4be3e6cd-8dce-41aa-b29f-9a822c287fbe">
      <active>true</active>
      <description>AP1 indicator</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3344" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="AP1ind" pinBrightness="255" />
        <preconditions />
        <transformation active="False" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="8aedb55a-ec81-4642-ae3a-4107a6995d4e">
      <active>true</active>
      <description>ATHR indicator</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3345" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="ATHRind" pinBrightness="255" />
        <preconditions />
        <transformation active="False" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="642e1ae6-1c8d-458d-9b16-66a029a14a6a">
      <active>true</active>
      <description>AP2 indicator</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3346" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="AP2ind" pinBrightness="255" />
        <preconditions />
        <transformation active="False" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="e266f306-e651-4a04-a118-2c78c7899dac">
      <active>true</active>
      <description>APPR indicator</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x3347" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="APPRind" pinBrightness="255" />
        <preconditions />
        <transformation active="False" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="5fd458de-549a-47e9-a3c8-db5b557e1b10">
      <active>true</active>
      <description>QNH inHg</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x0330" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="MobiFlight Mega/ SN-9" trigger="normal" ledAddress="BDisp" ledConnector="1" ledModuleSize="8" ledPadding="False" ledPaddingChar="0" ledDigits="4,5,6,7" ledDecimalPoints="6" />
        <preconditions>
          <precondition type="config" active="true" ref="664bea82-fcf3-4dd6-93e9-09d33add4527" operand="=" value="1" logic="and" />
        </preconditions>
        <transformation active="True" expression="($/16)*2.9529983071445" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="a9fecc0c-aea1-47b8-97b5-202943541713">
      <active>true</active>
      <description>QNH hPa</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x0330" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Display Module" serial="MobiFlight Mega/ SN-9" trigger="normal" ledAddress="BDisp" ledConnector="1" ledModuleSize="8" ledPadding="False" ledPaddingChar="0" ledDigits="4,5,6,7" />
        <preconditions>
          <precondition type="config" active="true" ref="664bea82-fcf3-4dd6-93e9-09d33add4527" operand="=" value="0" logic="and" />
        </preconditions>
        <transformation active="True" expression="$/16" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
    <config guid="664bea82-fcf3-4dd6-93e9-09d33add4527">
      <active>true</active>
      <description>Precondidtion QNH</description>
      <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <source type="FSUIPC" offset="0x66D9" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" />
        <comparison active="False" value="" operand="" ifValue="" elseValue="" />
        <display type="Pin" serial="MobiFlight Mega/ SN-9" trigger="normal" pin="HgPaswtch" pinBrightness="255" />
        <preconditions />
        <transformation active="False" expression="$" substrStart="0" substrEnd="7" />
        <configrefs>
          <configref active="False" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" placeholder="B" />
          <configref active="False" ref="830bf11b-5dc5-4c73-99e2-a35e49989c42" placeholder="A" />
          <configref active="False" ref="127bda9f-35ad-40b2-a520-d1f00b275156" placeholder="@" />
          <configref active="False" ref="4caccabc-d19e-40c8-a5d7-4fa4fc7acf29" placeholder="?" />
          <configref active="False" ref="4bd68883-7c72-4471-99d1-04395a50e872" placeholder="§" />
          <configref active="False" ref="428166be-4fe1-411e-aa80-598c54b56b5f" placeholder="#" />
        </configrefs>
      </settings>
    </config>
  </outputs>
  <inputs>
    <config guid="5942b7af-0fbb-436d-9f85-782216030781">
      <active>true</active>
      <description>SPD set</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="SPD set" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x07DC" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($>100,$-1,100)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x07DC" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($<399,$+1,399)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions>
          <precondition type="config" active="true" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" operand="=" value="0" logic="and" />
        </preconditions>
      </settings>
    </config>
    <config guid="59c7bb5b-317c-4706-a524-20737625e036">
      <active>true</active>
      <description>Mach set</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="SPD set" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x07E4" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($<11,10,$-1)" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x07E4" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($<84,$+1,84)" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions>
          <precondition type="config" active="true" ref="4e5a87c9-7fab-46cd-bbca-0a18854ac6ed" operand="=" value="1" logic="and" />
        </preconditions>
      </settings>
    </config>
    <config guid="e46b24a4-4406-470b-afdc-a3191406798c">
      <active>true</active>
      <description>HDG set</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="HDG set" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E0" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($=0,359,$-1)" />
          </onLeft>
          <onLeftFast type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E0" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($<10,350+$,$-10)" />
          </onLeftFast>
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E0" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($=359,0,$+1)" />
          </onRight>
          <onRightFast type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E0" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($>350,$-350,$+10)" />
          </onRightFast>
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="31c95e4e-6535-4635-9ce0-3f2c389c9805">
      <active>true</active>
      <description>ALT set</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="ALT set" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3349" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($>199,$-100,100)" />
          </onLeft>
          <onLeftFast type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3349" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($>1099,$-1000,100)" />
          </onLeftFast>
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3349" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($<48901,$+100,49000)" />
          </onRight>
          <onRightFast type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3349" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="if($<48001,$+1000,49000)" />
          </onRightFast>
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="d813d39b-0bcd-4c2c-8253-c1e5de12ea91">
      <active>true</active>
      <description>VS Set</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="VS set" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x334D" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="$-1" />
          </onLeft>
          <onLeftFast />
          <onRight type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x334D" offsetType="Integer" size="4" mask="0xFFFFFFFF" bcdMode="False" inputValue="$+1" />
          </onRight>
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="f8d31961-ee96-4e7e-83bf-cc6781302a10">
      <active>true</active>
      <description>Baro in Hg</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="Baroset" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="EventIdInputAction" eventId="65884" param="0" />
          <onLeftFast />
          <onRight type="EventIdInputAction" eventId="65883" param="0" />
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="b20443e6-100c-44b0-839a-6a124516ff4e">
      <active>false</active>
      <description>Baro hPa</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="-" name="" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <encoder>
          <onLeft type="EventIdInputAction" eventId="66510" param="0" />
          <onLeftFast />
          <onRight type="EventIdInputAction" eventId="65584" param="0" />
          <onRightFast />
        </encoder>
        <preconditions />
      </settings>
    </config>
    <config guid="e3915f93-8424-4c39-b7af-a6ad210d69d0">
      <active>true</active>
      <description>SPD/MACH</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="mchspd" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66D5" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="1" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66D5" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="8cd23f80-1e41-4e04-944d-c20f3113000a">
      <active>true</active>
      <description>HDG/TRK</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="hdgtrk" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66D6" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="1" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66D6" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="7de0ca7f-a2ed-441a-8c80-685673bc89b6">
      <active>true</active>
      <description>Metric ALT</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="Metric" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66D8" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="1" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66D8" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="f8b7e6ba-710d-4325-b981-3e01721cdbf8">
      <active>true</active>
      <description>SPD Push</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="SPDpush" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E4" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="1" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E4" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="f9129924-89a4-4da1-8d93-72ea5d03bd42">
      <active>true</active>
      <description>SPD Pull</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="SPDpull" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E4" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="2" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E4" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="70dc0116-dc85-4e4d-8d6d-c2fe9fcecd31">
      <active>true</active>
      <description>HDG Push</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="HDGpush" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E5" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="1" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E5" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="49c78dbc-aacb-435e-a6cc-80c969e2431e">
      <active>true</active>
      <description>HDG Pull</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="HDGpull" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E5" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="2" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E5" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="e0e23287-219e-40f5-ba1e-4d3d540b0e6a">
      <active>true</active>
      <description>ALT Push</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="ALTpush" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E6" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="1" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E6" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="838064d1-e80f-46c3-9e67-745d408ab680">
      <active>true</active>
      <description>ALT Pull</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="ALTpull" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E6" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="2" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E6" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="0d78f013-57d2-4d47-aff1-9db3f9a69b64">
      <active>true</active>
      <description>VS Push</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="VSpush" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E7" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="1" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E7" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="4c1d7b33-0a29-4355-bf53-66ed4ed9ddf3">
      <active>true</active>
      <description>VS Pull</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="VSpull" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E7" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="2" />
          </onPress>
          <onRelease type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x66E7" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="0" />
          </onRelease>
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="21501bbf-2f09-4782-9bee-dec755d3be28">
      <active>true</active>
      <description>FD button</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="FDbtn" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3341" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="if($=1,0,1)" />
          </onPress>
          <onRelease />
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="24d483ae-d9b5-4bdd-a287-540c6a462c3e">
      <active>true</active>
      <description>LS button</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="LSbtn" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3342" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="if($=1,0,1)" />
          </onPress>
          <onRelease />
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="1b6563f6-2bd5-4ca6-aa9c-5a73fba675db">
      <active>true</active>
      <description>LOC button</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="LOCbtn" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3343" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="if($=1,0,1)" />
          </onPress>
          <onRelease />
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="fd19f8b4-beba-4f8c-9576-bc6044eb7f3c">
      <active>true</active>
      <description>AP1 button</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="AP1btn" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3344" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="if($=1,0,1)" />
          </onPress>
          <onRelease />
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="6eab2d29-f368-4f54-9d10-55dcc86343ec">
      <active>true</active>
      <description>ATHR button</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="ATHRbtn" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3345" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="if($=1,0,1)" />
          </onPress>
          <onRelease />
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="62fcc227-1d51-4c31-8c43-a6126fd9cf9f">
      <active>true</active>
      <description>AP2 button</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="AP2btn" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3346" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="if($=0,1,0)" />
          </onPress>
          <onRelease />
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="ff8ee666-5b22-484d-bd04-e1323d33cfe4">
      <active>true</active>
      <description>APPR button</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="APPRbtn" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3347" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="if($=0,1,0)" />
          </onPress>
          <onRelease />
        </button>
        <preconditions />
      </settings>
    </config>
    <config guid="26c41069-fb1a-450b-a0fc-814e2393c8ec">
      <active>true</active>
      <description>Barometric STD</description>
      <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.8.2.0, Culture=neutral, PublicKeyToken=null" serial="MobiFlight Mega/ SN-9" name="SetStd" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <button>
          <onPress type="FsuipcOffsetInputAction">
            <source type="FSUIPC" offset="0x3348" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="if($=0,1,0)" />
          </onPress>
          <onRelease />
        </button>
        <preconditions />
      </settings>
    </config>
  </inputs>
</MobiflightConnector>
2020-06-23 00:24
Avatar
thatchi
Posts: 181
Thank Joe. I did have the basic a320 mcp setup works, but I want to perfect some details to be as real as possible. I am not sure about more advance or not but I am sure that two brains are better than one . When I am happy with the lua script , I will post it . Thanks a million .
2020-06-23 02:45
Avatar
thatchi
Posts: 181
Do you use push pull encoders ? I only have the cheap push encoders .
2020-06-23 02:47
Avatar
thatchi
Posts: 181
I notice a switch next to each encoder. Do you use it as push and pull button instead of encoder push pull ?
2020-06-23 02:56
Avatar
Joe_Snuffy
Posts: 20
iconthatchi:

I notice a switch next to each encoder. Do you use it as push and pull button instead of encoder push pull ?



That's it exactly, I used regular encoders, and then a on/off/on momentary switch(springs back to center) for the push pull. I never got the "---" working for managed mode, but for me I don't care about that, just want the buttons. Actually used mobiflight to make it show 80808 for VS when in managed momde but, was tough for the others. GL, hope what I did helped.
2020-06-23 04:31
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
The Dashes for Managed Mode should be no Problem.
All you need is a indicator !

What Value is used when in Managed Mode ??? Is it as you say 80808 exactly ?? Or is the value longer but Display just show 80808 in case of missing digits ??

If you can say.... Display show always xxxx when it should be managed with dashes AND this value can NEVER occure ona other situation.....

then use Compare..... Say there If Value = xxxxx THEN "---" ELSE "$"
Good Luck !
2020-06-23 22:58
Avatar
Joe_Snuffy
Posts: 20
iconpizman82:

then use Compare..... Say there If Value = xxxxx THEN "---" ELSE "$"



I'll look into that later, having fun flying with it now. I feel like I had tried something like that before, and the problem was that the offset is an INT value. I know I tried something like that, but it may have been in the transform section, so it didn't like it. If I really want to have that down the road, and in fact the INT thing is the issue I can always do a precondition and have one display be the INT stuff and the other be the STRING value, then I shouldn't have a conflict.

For now, I'm just happy that 95%+ of the project works. Believe me, I understand why there aren't any other Aerosoft panels out there, it has been very frustrating at times.

Thanks again for this great tool that lets us do this.
2020-06-24 04:08
Go to page 1Go to page 012Go to page 2Go to page 2