feat(fw): Jumper T14 support (#4543)

This commit is contained in:
3djc
2024-01-17 12:03:21 +10:00
committed by GitHub
parent 3235293580
commit 1b7044a134
19 changed files with 274 additions and 23 deletions
+31
View File
@@ -297,6 +297,37 @@ LEGACY_NAMES = [
}
}
},
{
"targets": {"t14"},
"inputs": {
"LH": {
"yaml": "Rud"
},
"LV": {
"yaml": "Ele"
},
"RV": {
"yaml": "Thr"
},
"RH": {
"yaml": "Ail"
},
"P1": {
"yaml": "POT1",
"lua": "s1",
"label": "S1",
"short_label": "1",
"description": "Potentiometer 1"
},
"P2": {
"yaml": "POT2",
"lua": "s2",
"label": "S2",
"short_label": "2",
"description": "Potentiometer 2"
},
}
},
{
"targets": {
"commando8",
+4
View File
@@ -58,6 +58,10 @@ POT_CONFIG = {
"P1": {"default": "POT"},
"P2": {"default": "POT"}
},
"t14": {
"P1": {"default": "POT_CENTER"},
"P2": {"default": "POT_CENTER"}
},
"tx12": {
"P1": {"default": "POT_CENTER"},
"P2": {"default": "POT_CENTER"}
+10
View File
@@ -95,6 +95,16 @@ SWITCH_CONFIG = {
"SD": {"default": "3POS", "display": [1, 1]},
"SH": {"default": "2POS", "display": [1, 3]}
},
"t14": {
# left side
"SA": {"default": "2POS", "display": [0, 0]},
"SC": {"default": "3POS", "display": [0, 1]},
"SE": {"default": "2POS", "display": [0, 2]},
# right side
"SB": {"default": "2POS", "display": [1, 0]},
"SD": {"default": "3POS", "display": [1, 1]},
"SF": {"default": "TOGGLE", "display": [1, 2]}
},
"t16": {
"SA": {"default": "3POS"},
"SB": {"default": "3POS"},