Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String support Rudder display #19

Merged
merged 16 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions KAV_Simulation/Community/devices/kav_rad_tcas.device.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"Type": "KAV_RAD_TCAS",
"Author": "Jak Kav",
"URL": "https://github.com/MobiFlight/MobiFlight-CustomDevices/tree/main/KAV_Simulation/EFIS_FCU",
"Version" : "1.0.0"
"Version": "1.0.0"
},
"Config": {
"Pins": [
Expand Down Expand Up @@ -47,5 +47,4 @@
"description": "$ = 1 will display all Segments, $ = 0 will clear display"
}
]
}

}
130 changes: 67 additions & 63 deletions KAV_Simulation/Community/devices/kav_rudder.device.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,70 @@
{
"$schema": "./mfdevice.schema.json",
"Info": {
"Label": "Kav's Rudder LCD",
"Type": "KAV_RUDDER",
"Author": "Jak Kav",
"URL": "https://github.com/MobiFlight/MobiFlight-CustomDevices/tree/main/KAV_Simulation/EFIS_FCU",
"Version" : "1.0.0"
},
"Config": {
"Pins": [
"Data",
"CLK",
"CS"
],
"isI2C": false
},
"MessageTypes": [
{
"id": -1,
"label": "Clear display",
"description": "will clear the display"
"$schema": "./mfdevice.schema.json",
"Info": {
"Label": "Kav's Rudder LCD",
"Type": "KAV_RUDDER",
"Author": "Jak Kav",
"URL": "https://github.com/MobiFlight/MobiFlight-CustomDevices/tree/main/KAV_Simulation/EFIS_FCU",
"Version" : "1.0.1"
},
{
"id": 0,
"label": "Set 'L'",
"description": "$ will set the first character to show 'L' or blank (0/1)"
"Config": {
"Pins": [
"Data",
"CS",
"CLK"
],
"isI2C": false
},
{
"id": 1,
"label": "Set 'R'",
"description": "$ will set the first character to show 'R' or blank (0/1)"
},
{
"id": 2,
"label": "Set dot",
"description": "$ will set the dot to show or hide"
},
{
"id": 3,
"label": "Set value",
"description": "$ will set the value of the LCD"
},
{
"id": 4,
"label": "Set value w/ 'L'",
"description": "$ will set the value on the display with the 'L' character"
},
{
"id": 5,
"label": "Set value w/ 'R'",
"description": "$ will set the value of the display with the 'R' character"
},
{
"id": 6,
"label": "Set value w/ 'L' or 'R'",
"description": "$ will set the value of the display with the 'L' or 'R' character"
},
{
"id": 7,
"label": "(v2.5.3+) Annunciator Test Mode",
"description": "$ = 1 will display all Segments, $ = 0 will clear display"
}
]
}

"MessageTypes": [
{
"id": 0,
"label": "(deprecated) Set 'L'",
"description": "$ will set the first character to show 'L' or blank (0/1)"
},
{
"id": 1,
"label": "(deprecated) Set 'R'",
"description": "$ will set the first character to show 'R' or blank (0/1)"
},
{
"id": 2,
"label": "(deprecated) Set dot",
"description": "$ will set the dot to show or hide"
},
{
"id": 3,
"label": "(deprecated) Set value",
"description": "$ will set the value of the LCD"
},
{
"id": 4,
"label": "(deprecated) Set value w/ 'L'",
"description": "$ will set the value on the display with the 'L' character"
},
{
"id": 5,
"label": "(deprecated) Set value w/ 'R'",
"description": "$ will set the value of the display with the 'R' character"
},
{
"id": 6,
"label": "(deprecated) Set value w/ 'L' or 'R'",
"description": "$ will set the value of the display with the 'L' or 'R' character"
},
{
"id": 7,
"label": "(v2.5.3+) Annunciator Test Mode",
"description": "$ = 1 will display all Segments, $ = 0 will restore the display"
},
{
"id": 8,
"label": "(v2.5.4+) Set value w/ 'L' or 'R'",
"description": "$ as string will be displayed with the 'L' or 'R' character, e.g. 'L12.3'"
},
{
"id": 9,
"label": "(v2.5.4+) Clear or restore display",
"description": "$ = 1 will clear the display, $ = 0 will restore the display"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MobiflightConnector>
<outputs>
<config guid="c4d5cfec-8aa4-49e9-a994-7ca4fc9d9f9a">
<active>true</active>
<description>Rudder Trim value</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=10.3.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="SimConnect" VarType="CODE" Value="(L:A32NX_HYD_RUDDER_TRIM_FEEDBACK_ANGLE)" UUID="c8351461-2213-4eb0-9a77-fc7a2c27d677" />
<test type="String" value="" />
<modifiers />
<display type="-" serial="Kav Mega Pedesta/ SN-346-31C" trigger="normal" pin="" pinBrightness="255" />
<preconditions />
<configrefs />
</settings>
</config>
<config guid="7c3e6edc-f0b7-4757-8abf-44d581c5ddd7">
<active>true</active>
<description>Rudder Trim</description>
<settings msdata:InstanceType="MobiFlight.OutputConfigItem, MFConnector, Version=10.3.0.0, Culture=neutral, PublicKeyToken=null" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<source type="SimConnect" VarType="CODE" Value="(L:A32NX_HYD_RUDDER_TRIM_FEEDBACK_ANGLE)" UUID="c8351461-2213-4eb0-9a77-fc7a2c27d677" />
<test type="String" value="" />
<modifiers>
<transformation active="True" expression="Abs($)" />
<padding active="True" direction="Left" length="3" character="0" />
<transformation active="True" expression="if (# &lt; 0, 'L' + '$', 'R' + '$')" />
</modifiers>
<display type="CustomDevice" serial="Kav Mega Pedesta/ SN-346-31C" trigger="normal" customType="" customName="RUDDER TRIM" messageType="8" value="$" />
<preconditions />
<configrefs>
<configref active="True" ref="c4d5cfec-8aa4-49e9-a994-7ca4fc9d9f9a" placeholder="#" testvalue="1" />
</configrefs>
</settings>
</config>
</outputs>
<inputs />
</MobiflightConnector>
Loading
Loading