[feat] enable Octavi IFR-1 shift mode indicator support#2845
Open
eFloh wants to merge 2 commits intoMobiFlight:mainfrom
Open
[feat] enable Octavi IFR-1 shift mode indicator support#2845eFloh wants to merge 2 commits intoMobiFlight:mainfrom
eFloh wants to merge 2 commits intoMobiFlight:mainfrom
Conversation
28d75b8 to
576d2d0
Compare
|
Build for this pull request: |
Contributor
Author
|
this is currently broken (DuplicateKeyException - update will follow. |
cea790c to
714a690
Compare
|
Build for this pull request: |
|
Build for this pull request: |
1895a2b to
96e5bf1
Compare
|
Build for this pull request: |
Contributor
Author
|
this is now tested and working together with MS FS 2022 and IFR-1 Firmware v1.2 and from my perspective ready to merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When applying this PR, the Octavi IFR-1 interface will have two new functions:
these can be used to set the new output pin to make the context blink or to control a variable to detect the shift mode in Mobiflight.
Sample mobiflight rules:
{ "Name": "Test Shiftmode", "ConfigFiles": [ { "Label": "New file", "FileName": null, "ReferenceOnly": false, "EmbedContent": true, "ConfigItems": [ { "Source": { "MobiFlightVariable": { "TYPE": "number", "Name": "IsIFRShifted", "Number": 0.0, "Text": "", "Expression": "$" }, "Type": "VariableSource" }, "TestValue": { "type": 1, "Float64": 1.0, "String": null }, "Device": { "Name": "Blink Context", "Pin": "Blink Context", "Brightness": 255, "PwmMode": false, "Type": "Output" }, "DeviceType": "Output", "DeviceName": "Blink Context", "GUID": "aaa0b5d2-1e55-4048-a2b1-939fe9a845de", "Active": true, "Name": "blinky", "Type": "OutputConfigItem", "Controller": { "Name": "IFR1", "Serial": "JS-439ed980-c5f4-11ee-8001-444553540000" }, "RawValue": "0", "Value": "0" }, { "button": { "onPress": { "Type": "VariableInputAction", "Variable": { "TYPE": "number", "Name": "IsIFRShifted", "Number": 0.0, "Text": "0", "Expression": "0" } }, "onRelease": null, "onLongRelease": null, "onHold": null, "LongReleaseDelay": 350, "HoldDelay": 350, "RepeatDelay": 0 }, "Device": { "Type": "Button", "Name": "Button_UNSHIFT_SW" }, "DeviceType": "Button", "DeviceName": "Button_UNSHIFT_SW", "GUID": "43931555-2f52-4acb-ac1c-25582934624f", "Active": true, "Name": "unshifted", "Type": "InputConfigItem", "Controller": { "Name": "IFR1", "Serial": "JS-439ed980-c5f4-11ee-8001-444553540000" }, "RawValue": "RELEASE", "Value": " " }, { "button": { "onPress": { "Type": "VariableInputAction", "Variable": { "TYPE": "number", "Name": "IsIFRShifted", "Number": 1.0, "Text": "1", "Expression": "1" } }, "onRelease": null, "onLongRelease": null, "onHold": null, "LongReleaseDelay": 350, "HoldDelay": 350, "RepeatDelay": 0 }, "Device": { "Type": "Button", "Name": "Button_SHIFT_SW" }, "DeviceType": "Button", "DeviceName": "Button_SHIFT_SW", "GUID": "083bca71-9a85-4a13-87cf-56471d3ecc5d", "Active": true, "Name": "Neue Eingabe-Konfiguration", "Type": "InputConfigItem", "Controller": { "Name": "IFR1", "Serial": "JS-439ed980-c5f4-11ee-8001-444553540000" }, "RawValue": "RELEASE", "Value": " " } ] } ], "Sim": "msfs", "Aircraft": [], "Features": { "FSUIPC": false, "ProSim": false }, "_version": "0.9" }@felixc7 this may be a present for you, thanks for letting me join the beta group...