feat: Jumper T15 support (#5113)

Co-authored-by: 3djc <3djc@gh.com>
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
3djc
2024-06-07 17:51:49 +10:00
committed by GitHub
co-authored by 3djc philmoz
parent f6f6d2a85a
commit 26c96ccdd0
83 changed files with 3354 additions and 136 deletions
+5
View File
@@ -169,6 +169,11 @@ def main():
cmake_options["PCBREV"] = "T8"
firmware_options = options_radiomaster_t8
maxsize = 65536 * 8
elif board_name == "t15":
cmake_options["PCB"] = "X10"
cmake_options["PCBREV"] = "T15"
firmware_options = options_jumper_t16
maxsize = 2 * 1024 * 1024
elif board_name == "t16":
cmake_options["PCB"] = "X10"
cmake_options["PCBREV"] = "T16"
+31
View File
@@ -89,6 +89,37 @@ LEGACY_NAMES = [
}
}
},
{
"targets": {"t15"},
"inputs": {
"LH": {
"yaml": "Rud"
},
"LV": {
"yaml": "Ele"
},
"RV": {
"yaml": "Thr"
},
"RH": {
"yaml": "Ail"
},
"P1": {
"yaml": "S1",
"lua": "s1",
"label": "S1",
"short_label": "1",
"description": "Potentiometer S1"
},
"P2": {
"yaml": "S2",
"lua": "s2",
"label": "S2",
"short_label": "2",
"description": "Potentiometer S2"
}
}
},
{
"targets": {"x12s"},
"inputs": {
+4
View File
@@ -78,6 +78,10 @@ POT_CONFIG = {
"P1": {"default": "POT_CENTER"},
"P2": {"default": "POT_CENTER"}
},
"t15": {
"P1": {"default": "POT_CENTER"},
"P2": {"default": "POT_CENTER"},
},
"t16": {
"P1": {"default": "POT_CENTER"},
"P2": {"default": "MULTIPOS"},
+8
View File
@@ -105,6 +105,14 @@ SWITCH_CONFIG = {
"SD": {"default": "3POS", "display": [1, 1]},
"SF": {"default": "TOGGLE", "display": [1, 2]}
},
"t15": {
"SA": {"default": "3POS"},
"SB": {"default": "3POS"},
"SC": {"default": "3POS"},
"SD": {"default": "3POS"},
"SE": {"default": "2POS"},
"SF": {"default": "2POS"},
},
"t16": {
"SA": {"default": "3POS"},
"SB": {"default": "3POS"},