feat: Add support for RadioMaster Pocket (#3892)
* RM Pocket support * Further Pocket changes * Production readiness * chore: Consistent formatting * chore: `ENABLE_SERIAL_PASSTHROUGH` enables `CLI` * chore: Add to Buddy * fix: merge wtf
This commit is contained in:
@@ -354,6 +354,30 @@ LEGACY_NAMES = [
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"targets": {"pocket"},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"targets": {"x9lite", "x9lites"},
|
||||
"inputs": {
|
||||
|
||||
@@ -130,6 +130,9 @@ POT_CONFIG = {
|
||||
"P1": {"default": "WITHOUT_DETENT"},
|
||||
"P2": {"default": "WITHOUT_DETENT"}
|
||||
},
|
||||
"pocket": {
|
||||
"P1": { "default": "WITHOUT_DETENT" }
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -324,6 +324,15 @@ SWITCH_CONFIG = {
|
||||
"SF": {"default": "2POS", "display": [1, 2]},
|
||||
"SH": {"default": "TOGGLE", "display": [1, 3]},
|
||||
},
|
||||
"pocket": {
|
||||
# left side
|
||||
"SA": { "default": "2POS", "display": [ 0, 0 ] },
|
||||
"SB": { "default": "3POS", "display": [ 0, 1 ] },
|
||||
"SE": { "default": "TOGGLE", "display": [ 0, 2 ] },
|
||||
# right side
|
||||
"SD": { "default": "2POS", "display": [ 1, 0 ] },
|
||||
"SC": { "default": "3POS", "display": [ 1, 1 ] },
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user