Automatically detect FlySky digital hall sticks on X10-class radios without necessity of build-time CMake option FLYSKY_HALL_STICKS.
Added special UART4 init to sample if FlySky sticks are present or not. Added boolean globalData.flyskygimbals to save the detection result. Removed FLYSKY_HALL_STICKS and FLYSKY_HALL_STICKS_REVERSE CMake build options. Tested on two RM TX16S radios, one with FlySky digital hall sticks and second with stock analog sticks.
This commit is contained in:
@@ -14,23 +14,11 @@ boards = {
|
||||
"PCBREV": "TX16S",
|
||||
"DEFAULT_MODE": "1",
|
||||
},
|
||||
"TX16S_1_FS": {
|
||||
"PCB": "X10",
|
||||
"PCBREV": "TX16S",
|
||||
"DEFAULT_MODE": "1",
|
||||
"FLYSKY_HALL_STICKS": "YES",
|
||||
},
|
||||
"TX16S_2": {
|
||||
"PCB": "X10",
|
||||
"PCBREV": "TX16S",
|
||||
"DEFAULT_MODE": "2",
|
||||
},
|
||||
"TX16S_2_FS": {
|
||||
"PCB": "X10",
|
||||
"PCBREV": "TX16S",
|
||||
"DEFAULT_MODE": "2",
|
||||
"FLYSKY_HALL_STICKS": "YES",
|
||||
},
|
||||
"TX12_1": {
|
||||
"PCB": "X7",
|
||||
"PCBREV": "TX12",
|
||||
|
||||
Reference in New Issue
Block a user