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:
Simon Wilks
2012-09-05 11:41:34 +02:00
parent 84e11a0cac
commit de7aa60f4b
+3 -3
View File
@@ -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);