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:
3djc
2023-08-14 12:10:22 +10:00
committed by GitHub
parent 4924500ea7
commit c2d8291e49
19 changed files with 124 additions and 41 deletions
+24
View File
@@ -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": {
+3
View File
@@ -130,6 +130,9 @@ POT_CONFIG = {
"P1": {"default": "WITHOUT_DETENT"},
"P2": {"default": "WITHOUT_DETENT"}
},
"pocket": {
"P1": { "default": "WITHOUT_DETENT" }
},
}
+9
View File
@@ -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 ] },
},
}