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:<config guid="9a238f67-874d-43e6-b285-7975f21defe1"> <active>true</active> <description>Adf1</description> <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <source type="FSUIPC" offset="0x0356" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" /> <comparison active="True" value="10" operand="=" ifValue="$-90" elseValue="" /> <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedAdfDmeXpdr" ledConnector="1" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="2,6" /> <preconditions /> <transformation active="False" expression="$" substrStart="0" substrEnd="7" /> <configrefs /> </settings> </config> <config guid="ab119ea7-1332-4e30-8e38-83b9095f9ee0"> <active>true</active> <description>Adf2</description> <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <source type="FSUIPC" offset="0x034C" offsetType="Integer" size="2" mask="0xFFFF" bcdMode="True" /> <comparison active="False" value="" operand="=" ifValue="1" elseValue="0" /> <display type="Display Module" serial="Arduino MB-02/ SN-3c6-e5f" trigger="normal" ledAddress="LedAdfDmeXpdr" ledConnector="1" ledModuleSize="8" ledPadding="True" ledPaddingChar="0" ledDigits="3,4,5" ledDecimalPoints="3" /> <preconditions /> <transformation active="False" expression="$" substrStart="0" substrEnd="7" /> <configrefs /> </settings> </config> <config guid="f42997cf-b057-4e63-ad04-d94fd36efb73"> <active>true</active> <description>Adf-Select</description> <settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <source type="FSUIPC" offset="0x66C0" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" /> <comparison active="False" value="" operand="" ifValue="" elseValue="" /> <display type="" serial="-" trigger="normal" pin="" pinBrightness="255" /> <preconditions /> <transformation active="False" expression="$" substrStart="0" substrEnd="7" /> <configrefs /> </settings> </config>
Code:<config guid="b2ca8cac-c6b2-4f08-960f-6e2bf5d50b99"> <active>true</active> <description>EncoderAdf1</description> <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderAdf" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <encoder> <onLeft type="EventIdInputAction" eventId="66543" param="0" /> <onLeftFast /> <onRight type="EventIdInputAction" eventId="66542" param="0" /> <onRightFast /> </encoder> <preconditions> <precondition type="config" active="true" ref="f42997cf-b057-4e63-ad04-d94fd36efb73" operand="=" value="1" logic="and" /> </preconditions> </settings> </config> <config guid="93afbfd1-1984-49e2-950f-2ee67c876174"> <active>true</active> <description>EncoderAdf2</description> <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="EncoderAdf" type="Encoder" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <encoder> <onLeft type="EventIdInputAction" eventId="66453" param="0" /> <onLeftFast /> <onRight type="EventIdInputAction" eventId="66454" param="0" /> <onRightFast /> </encoder> <preconditions> <precondition type="config" active="true" ref="f42997cf-b057-4e63-ad04-d94fd36efb73" operand="=" value="0" logic="and" /> </preconditions> </settings> </config> <config guid="986e7389-5ee0-4982-88e7-1cd164ebac0b"> <active>true</active> <description>ButtonSwapAdf</description> <settings msdata:InstanceType="MobiFlight.InputConfigItem, MFConnector, Version=7.4.0.0, Culture=neutral, PublicKeyToken=null" serial="Arduino MB-02/ SN-3c6-e5f" name="ButtonSwapAdf" type="Button" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <button> <onPress type="FsuipcOffsetInputAction"> <source type="FSUIPC" offset="0x66C0" offsetType="Integer" size="1" mask="0x00FF" bcdMode="False" inputValue="if($=0,1,0)" /> </onPress> <onRelease /> </button> <preconditions /> </settings> </config> </inputs>
To prevent this i give a guide in the linked Thread...... Use the Compare If value Bigger as 10 " >10 " THEN $-90
To make a 2 diggit Value we use " Compare : IF Value bigger then 10 ..... >10 .... THEN $-90 " So 105 come into 15 (and can be shown on 7 Segment Display)