feat: Flysky PA01 support (#6392)

Co-authored-by: Malte Langermann <malte@langermann.net>
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
Co-authored-by: 3djc <3djc@gh.com>
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: xlong <984929678@qq.com>
Co-authored-by: Peter Feerick <pfeerick@users.noreply.github.com>
This commit is contained in:
richardclli
2025-08-17 20:13:43 +10:00
committed by GitHub
co-authored by Malte Langermann philmoz 3djc raphaelcoeffic xlong Peter Feerick
parent 89e57df285
commit e89a4414ac
45 changed files with 5067 additions and 17 deletions
+23
View File
@@ -982,6 +982,29 @@ LEGACY_NAMES = [
},
},
},
{
"targets": {"pa01"},
"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"},
"SL1": {
"yaml": "SLIDER1",
"lua": "ls",
"label": "LS",
"short_label": "L",
"description": "Left slider"
},
"SL2": {
"yaml": "SLIDER2",
"lua": "rs",
"label": "RS",
"short_label": "R",
"description": "Right slider",
},
},
},
{
"targets": {"h747", "h7rs"},
"inputs": {
+4
View File
@@ -244,6 +244,10 @@ POT_CONFIG = {
"SL1": {"default": "SLIDER"},
"SL2": {"default": "SLIDER"},
},
"pa01": {
"SL1": {"default": "SLIDER"},
"SL2": {"default": "SLIDER"},
},
}
+13
View File
@@ -105,6 +105,19 @@ SWITCH_CONFIG = {
"SO": {"default": "2POS"},
"SP": {"default": "2POS"},
},
"pa01": {
"SA": { "default": "2POS" },
"SB": { "default": "3POS" },
"SC": { "default": "3POS" },
"SD": { "default": "TOGGLE" },
"SE": { "default": "TOGGLE" },
"SF": { "default": "TOGGLE" },
# custom switches
"SK": {"default": "2POS"},
"SL": {"default": "2POS"},
"SM": {"default": "2POS"},
"SN": {"default": "2POS"},
},
"lr3pro": {
# left side
"SA": {"default": "3POS", "display": [0, 0]},