mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 11:20:34 +08:00
Fix the RC mappings.
The value of the RC mapping parameters are mixed up resulting in the wrong parameter handle index values being used when attempting to read the corresponding RC channels. Currently giving throttle input on Mode 2 TXs will result in a roll input, etc.
This commit is contained in:
@@ -101,8 +101,8 @@ PARAM_DEFINE_INT32(RC_TYPE, 1); // 1 = FUTABA
|
||||
/* default is conversion factor for the PX4IO / PX4IOAR board, the factor for PX4FMU standalone is different */
|
||||
PARAM_DEFINE_FLOAT(BAT_V_SCALING, (3.3f * 52.0f / 5.0f / 4095.0f));
|
||||
|
||||
PARAM_DEFINE_INT32(RC_MAP_ROLL, 1);
|
||||
PARAM_DEFINE_INT32(RC_MAP_PITCH, 2);
|
||||
PARAM_DEFINE_INT32(RC_MAP_THROTTLE, 3);
|
||||
PARAM_DEFINE_INT32(RC_MAP_THROTTLE, 1);
|
||||
PARAM_DEFINE_INT32(RC_MAP_ROLL, 2);
|
||||
PARAM_DEFINE_INT32(RC_MAP_PITCH, 3);
|
||||
PARAM_DEFINE_INT32(RC_MAP_YAW, 4);
|
||||
PARAM_DEFINE_INT32(RC_MAP_MODE_SW, 5);
|
||||
|
||||
Reference in New Issue
Block a user