feat: Support for Flysky ST16 (#6071)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
Co-authored-by: Malte Langermann <malte@langermann.net>
This commit is contained in:
richardclli
2025-04-16 11:18:21 +10:00
committed by GitHub
co-authored by raphaelcoeffic Peter Feerick philmoz Malte Langermann
parent 94965c1d09
commit f82c3dea8c
58 changed files with 8369 additions and 25 deletions
+6
View File
@@ -131,6 +131,12 @@ KEY_LABELS = [
"MENU": { "label": "Menu" }
}
},
{
"targets": {"st16"},
"keys": {
"PAGEDN": { "label": "MENU" }
}
},
]
class Key:
+37
View File
@@ -947,6 +947,43 @@ LEGACY_NAMES = [
},
},
},
{
"targets": {"st16"},
"inputs": {
"LH": {"yaml": "Rud", "lua": "rud", "description": "Rudder"},
"LV": {"yaml": "Ele", "lua": "ele", "description": "Elevator"},
"RV": {"yaml": "Thr", "lua": "thr", "description": "Throttle"},
"RH": {"yaml": "Ail", "lua": "ail", "description": "Aileron"},
"P1": {
"yaml": "S1",
"lua": "s1",
"label": "S1",
"short_label": "1",
"description": "Potentiometer 1",
},
"P2": {
"yaml": "S2",
"lua": "s2",
"label": "S2",
"short_label": "2",
"description": "Potentiometer 2",
},
"SL1": {
"yaml": "LS",
"lua": "ls",
"label": "LS",
"short_label": "L",
"description": "Left slider",
},
"SL2": {
"yaml": "RS",
"lua": "rs",
"label": "RS",
"short_label": "R",
"description": "Right slider",
},
},
},
{
"targets": {"h747", "h7rs"},
"inputs": {
+6
View File
@@ -231,6 +231,12 @@ POT_CONFIG = {
"pocket": {
"P1": {"default": "POT"}
},
"st16": {
"P1": {"default": "POT"},
"P2": {"default": "POT"},
"SL1": {"default": "SLIDER"},
"SL2": {"default": "SLIDER"},
},
}
+12
View File
@@ -69,6 +69,18 @@ SWITCH_CONFIG = {
"SA" : { "default": "TOGGLE" },
"SB" : { "default": "TOGGLE" }
},
"st16": {
"SA": { "default": "2POS" },
"SB": { "default": "3POS" },
"SC": { "default": "3POS" },
"SD": { "default": "2POS" },
"SE": { "default": "2POS" },
"SF": { "default": "2POS" },
"SG": { "default": "TOGGLE" },
"SH": { "default": "TOGGLE" },
"SI": { "default": "TOGGLE" },
"SJ": { "default": "TOGGLE" },
},
"lr3pro": {
# left side
"SA": {"default": "3POS", "display": [0, 0]},