mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
fix(rc_input): label RC_INPUT_PROTO 4 as SUMD and 5 as ST24 (#29136)
The parameter labels and scan strings had SUMD and ST24 swapped relative to the values the driver uses, so selecting either protocol scanned the other and the status named the wrong one. Fix the labels rather than the values, because auto-detect has already stored 4 for every SUMD setup. Co-authored-by: Jacob Dahl <dahl.jakejacob@gmail.com>
This commit is contained in:
1 parent
dbab213c34
commit
985fba44d7
2 files changed
+4
-4
No files matched your search
@@ -97,8 +97,8 @@ private:
|
||||
RC_SCAN_PPM = 1,
|
||||
RC_SCAN_SBUS = 2,
|
||||
RC_SCAN_DSM = 3,
|
||||
RC_SCAN_ST24 = 5,
|
||||
RC_SCAN_SUMD = 4,
|
||||
RC_SCAN_ST24 = 5,
|
||||
RC_SCAN_CRSF = 6,
|
||||
RC_SCAN_GHST = 7,
|
||||
} _rc_scan_state{RC_SCAN_SBUS};
|
||||
@@ -108,8 +108,8 @@ private:
|
||||
"PPM",
|
||||
"SBUS",
|
||||
"DSM",
|
||||
"ST24",
|
||||
"SUMD",
|
||||
"ST24",
|
||||
"CRSF",
|
||||
"GHST"
|
||||
};
|
||||
|
||||
@@ -15,8 +15,8 @@ parameters:
|
||||
1: PPM
|
||||
2: SBUS
|
||||
3: DSM
|
||||
4: ST24
|
||||
5: SUMD
|
||||
4: SUMD
|
||||
5: ST24
|
||||
6: CRSF
|
||||
7: GHST
|
||||
min: -1
|
||||
|
||||
Reference in new issue
Block a user