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!
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.
Code:-- 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")
Hi Joe. I am working on same aerosoft. Wonder if you can share your lua script and MF mcc files. Thank.
Code:--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")
Code:<?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>
I notice a switch next to each encoder. Do you use it as push and pull button instead of encoder push pull ?
then use Compare..... Say there If Value = xxxxx THEN "---" ELSE "$"