diff --git a/src/modules/rc_update/CMakeLists.txt b/src/modules/rc_update/CMakeLists.txt index 927e2f96f2..2f2e543ad2 100644 --- a/src/modules/rc_update/CMakeLists.txt +++ b/src/modules/rc_update/CMakeLists.txt @@ -37,6 +37,9 @@ px4_add_module( SRCS rc_update.cpp rc_update.h + MODULE_CONFIG + params.yaml + params_deprecated.yaml DEPENDS hysteresis mathlib diff --git a/src/modules/rc_update/params.c b/src/modules/rc_update/params.c deleted file mode 100644 index 36ace2d33a..0000000000 --- a/src/modules/rc_update/params.c +++ /dev/null @@ -1,1989 +0,0 @@ -/**************************************************************************** - * - * Copyright (c) 2012-2025 PX4 Development Team. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * 3. Neither the name PX4 nor the names of its contributors may be - * used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN - * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - ****************************************************************************/ - -/** - * @file params.c - * - * Parameters defined for RC. - * - */ - -/** - * RC channel 1 minimum - * - * Minimum value for RC channel 1 - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC1_MIN, 1000.0f); - -/** - * RC channel 1 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC1_TRIM, 1500.0f); - -/** - * RC channel 1 maximum - * - * Maximum value for RC channel 1 - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC1_MAX, 2000.0f); - -/** - * RC channel 1 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC1_REV, 1.0f); - -/** - * RC channel 2 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC2_MIN, 1000.0f); - -/** - * RC channel 2 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC2_TRIM, 1500.0f); - -/** - * RC channel 2 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC2_MAX, 2000.0f); - -/** - * RC channel 2 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC2_REV, 1.0f); - -/** - * RC channel 3 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC3_MIN, 1000); - -/** - * RC channel 3 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC3_TRIM, 1500); - -/** - * RC channel 3 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC3_MAX, 2000); - -/** - * RC channel 3 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC3_REV, 1.0f); - -/** - * RC channel 4 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC4_MIN, 1000); - -/** - * RC channel 4 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC4_TRIM, 1500); - -/** - * RC channel 4 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC4_MAX, 2000); - -/** - * RC channel 4 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC4_REV, 1.0f); - -/** - * RC channel 5 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC5_MIN, 1000); - -/** - * RC channel 5 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC5_TRIM, 1500); - -/** - * RC channel 5 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC5_MAX, 2000); - -/** - * RC channel 5 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC5_REV, 1.0f); - -/** - * RC channel 6 minimum - * - * Minimum value for this channel. - * - * @unit us - * @min 800.0 - * @max 1500.0 - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC6_MIN, 1000); - -/** - * RC channel 6 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC6_TRIM, 1500); - -/** - * RC channel 6 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC6_MAX, 2000); - -/** - * RC channel 6 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC6_REV, 1.0f); - -/** - * RC channel 7 minimum - * - * Minimum value for this channel. - * - * @unit us - * @min 800.0 - * @max 1500.0 - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC7_MIN, 1000); - -/** - * RC channel 7 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC7_TRIM, 1500); - -/** - * RC channel 7 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC7_MAX, 2000); - -/** - * RC channel 7 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC7_REV, 1.0f); - -/** - * RC channel 8 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC8_MIN, 1000); - -/** - * RC channel 8 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC8_TRIM, 1500); - -/** - * RC channel 8 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC8_MAX, 2000); - -/** - * RC channel 8 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC8_REV, 1.0f); - -/** - * RC channel 9 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC9_MIN, 1000); - -/** - * RC channel 9 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC9_TRIM, 1500); - -/** - * RC channel 9 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC9_MAX, 2000); - -/** - * RC channel 9 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC9_REV, 1.0f); - -/** - * RC channel 10 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC10_MIN, 1000); - -/** - * RC channel 10 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC10_TRIM, 1500); - -/** - * RC channel 10 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC10_MAX, 2000); - -/** - * RC channel 10 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC10_REV, 1.0f); - -/** - * RC channel 11 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC11_MIN, 1000); - -/** - * RC channel 11 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC11_TRIM, 1500); - -/** - * RC channel 11 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC11_MAX, 2000); - -/** - * RC channel 11 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC11_REV, 1.0f); - -/** - * RC channel 12 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC12_MIN, 1000); - -/** - * RC channel 12 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC12_TRIM, 1500); - -/** - * RC channel 12 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC12_MAX, 2000); - -/** - * RC channel 12 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC12_REV, 1.0f); - -/** - * RC channel 13 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC13_MIN, 1000); - -/** - * RC channel 13 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC13_TRIM, 1500); - -/** - * RC channel 13 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC13_MAX, 2000); - -/** - * RC channel 13 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC13_REV, 1.0f); - -/** - * RC channel 14 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC14_MIN, 1000); - -/** - * RC channel 14 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC14_TRIM, 1500); - -/** - * RC channel 14 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC14_MAX, 2000); - -/** - * RC channel 14 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC14_REV, 1.0f); - -/** - * RC channel 15 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC15_MIN, 1000); - -/** - * RC channel 15 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC15_TRIM, 1500); - -/** - * RC channel 15 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC15_MAX, 2000); - -/** - * RC channel 15 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC15_REV, 1.0f); - -/** - * RC channel 16 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC16_MIN, 1000); - -/** - * RC channel 16 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC16_TRIM, 1500); - -/** - * RC channel 16 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC16_MAX, 2000); - -/** - * RC channel 16 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC16_REV, 1.0f); - -/** - * RC channel 17 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC17_MIN, 1000); - -/** - * RC channel 17 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC17_TRIM, 1500); - -/** - * RC channel 17 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC17_MAX, 2000); - -/** - * RC channel 17 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC17_REV, 1.0f); - -/** - * RC channel 18 minimum - * - * Minimum value for this channel. - * - * @min 800.0 - * @max 1500.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC18_MIN, 1000); - -/** - * RC channel 18 trim - * - * Mid point value - * - * @min 800.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC18_TRIM, 1500); - -/** - * RC channel 18 maximum - * - * Maximum value for this channel. - * - * @min 1500.0 - * @max 2200.0 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC18_MAX, 2000); - -/** - * RC channel 18 reverse - * - * Set to -1 to reverse channel. - * - * @min -1.0 - * @max 1.0 - * @value -1.0 Reverse - * @value 1.0 Normal - * @group Radio Calibration - */ -PARAM_DEFINE_FLOAT(RC18_REV, 1.0f); - -/** - * RC channel count - * - * This parameter is used by Ground Station software to save the number - * of channels which were used during RC calibration. It is only meant - * for ground station use. - * - * @min 0 - * @max 18 - * @group Radio Calibration - */ -PARAM_DEFINE_INT32(RC_CHAN_CNT, 0); - -/** - * Roll control channel mapping. - * - * The channel index (starting from 1 for channel 1) indicates - * which channel should be used for reading roll inputs from. - * A value of zero indicates the switch is not assigned. - * - * @min 0 - * @max 18 - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - * @group Radio Calibration - */ -PARAM_DEFINE_INT32(RC_MAP_ROLL, 0); - -/** - * Pitch control channel mapping. - * - * The channel index (starting from 1 for channel 1) indicates - * which channel should be used for reading pitch inputs from. - * A value of zero indicates the switch is not assigned. - * - * @min 0 - * @max 18 - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - * @group Radio Calibration - */ -PARAM_DEFINE_INT32(RC_MAP_PITCH, 0); - -/** - * Failsafe channel mapping. - * - * Configures which RC channel is used by the receiver to indicate the signal was lost - * (on receivers that use output a fixed signal value to report lost signal). - * If set to 0, the channel mapped to throttle is used. - * - * Use RC_FAILS_THR to set the threshold indicating lost signal. By default it's below - * the expected range and hence disabled. - * - * @min 0 - * @max 18 - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - * @group Radio Calibration - */ -PARAM_DEFINE_INT32(RC_MAP_FAILSAFE, 0); - -/** - * Throttle control channel mapping. - * - * The channel index (starting from 1 for channel 1) indicates - * which channel should be used for reading throttle inputs from. - * A value of zero indicates the switch is not assigned. - * - * @min 0 - * @max 18 - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - * @group Radio Calibration - */ -PARAM_DEFINE_INT32(RC_MAP_THROTTLE, 0); - -/** - * Yaw control channel mapping. - * - * The channel index (starting from 1 for channel 1) indicates - * which channel should be used for reading yaw inputs from. - * A value of zero indicates the switch is not assigned. - * - * @min 0 - * @max 18 - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - * @group Radio Calibration - */ -PARAM_DEFINE_INT32(RC_MAP_YAW, 0); - -/** - * Single channel flight mode selection - * - * If this parameter is non-zero, flight modes are only selected - * by this channel and are assigned to six slots. - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_FLTMODE, 0); - -/** - * Return switch channel - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_RETURN_SW, 0); - -/** - * Loiter switch channel - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_LOITER_SW, 0); - -/** - * Offboard switch channel - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_OFFB_SW, 0); - -/** - * Emergency Kill switch channel - * - * This channel immediately sets all outputs to their disarmed values, parachutes are NOT deployed. - * Unlike termination this can be undone. Quickly flipping the switch back restores control. - * System auto-disarms after 5 seconds, preflight checks and re-arming are then required. - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_KILL_SW, 0); - -/** - * Termination switch channel - * - * This channel triggers irreversible flight termination: - * All outputs are disabled and set to their failsafe values (disarmed by default) - * and MAVLink parachutes are triggered. - * - * Unlike a kill switch, this cannot be undone until system reboot. Use with caution. - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_TERM_SW, 0); - -/** - * Arm switch channel. - * - * Use it to arm/disarm via switch instead of default throttle stick. If this is - * assigned, arming and disarming via stick is disabled. - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_ARM_SW, 0); - -/** - * Flaps channel - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_FLAPS, 0); - -/** - * VTOL transition switch channel mapping - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_TRANS_SW, 0); - -/** - * Landing gear switch channel - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_GEAR_SW, 0); - -/** - * Button flight mode selection - * - * This bitmask allows to specify multiple channels for changing flight modes using - * momentary buttons. Each channel is assigned to a mode slot ((lowest channel = slot 1). - * The resulting modes for each slot X is defined by the COM_FLTMODEX parameters. - * The functionality can be used only if RC_MAP_FLTMODE is disabled. - * - * The maximum number of available slots and hence bits set in the mask is 6. - * @min 0 - * @max 258048 - * @group Radio Switches - * @bit 0 Mask Channel 1 as a mode button - * @bit 1 Mask Channel 2 as a mode button - * @bit 2 Mask Channel 3 as a mode button - * @bit 3 Mask Channel 4 as a mode button - * @bit 4 Mask Channel 5 as a mode button - * @bit 5 Mask Channel 6 as a mode button - * @bit 6 Mask Channel 7 as a mode button - * @bit 7 Mask Channel 8 as a mode button - * @bit 8 Mask Channel 9 as a mode button - * @bit 9 Mask Channel 10 as a mode button - * @bit 10 Mask Channel 11 as a mode button - * @bit 11 Mask Channel 12 as a mode button - * @bit 12 Mask Channel 13 as a mode button - * @bit 13 Mask Channel 14 as a mode button - * @bit 14 Mask Channel 15 as a mode button - * @bit 15 Mask Channel 16 as a mode button - * @bit 16 Mask Channel 17 as a mode button - * @bit 17 Mask Channel 18 as a mode button - */ -PARAM_DEFINE_INT32(RC_MAP_FLTM_BTN, 0); - -/** - * AUX1 Passthrough RC channel - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_AUX1, 0); - -/** - * AUX2 Passthrough RC channel - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_AUX2, 0); - -/** - * AUX3 Passthrough RC channel - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_AUX3, 0); - -/** - * AUX4 Passthrough RC channel - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_AUX4, 0); - -/** - * AUX5 Passthrough RC channel - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_AUX5, 0); - -/** - * AUX6 Passthrough RC channel - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_AUX6, 0); - -/** - * Payload Power Switch RC channel - * - * @min 0 - * @max 18 - * @group Radio Switches - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_PAY_SW, 0); - -/** - * PARAM1 tuning channel - * - * Can be used for parameter tuning with the RC. This one is further referenced as the 1st parameter channel. - * Set to 0 to deactivate * - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_PARAM1, 0); - -/** - * PARAM2 tuning channel - * - * Can be used for parameter tuning with the RC. This one is further referenced as the 2nd parameter channel. - * Set to 0 to deactivate * - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_PARAM2, 0); - -/** - * PARAM3 tuning channel - * - * Can be used for parameter tuning with the RC. This one is further referenced as the 3th parameter channel. - * Set to 0 to deactivate * - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_PARAM3, 0); - -/** - * RC channel to engage the main motor (for helicopters) - * - * @min 0 - * @max 18 - * @group Radio Calibration - * @value 0 Unassigned - * @value 1 Channel 1 - * @value 2 Channel 2 - * @value 3 Channel 3 - * @value 4 Channel 4 - * @value 5 Channel 5 - * @value 6 Channel 6 - * @value 7 Channel 7 - * @value 8 Channel 8 - * @value 9 Channel 9 - * @value 10 Channel 10 - * @value 11 Channel 11 - * @value 12 Channel 12 - * @value 13 Channel 13 - * @value 14 Channel 14 - * @value 15 Channel 15 - * @value 16 Channel 16 - * @value 17 Channel 17 - * @value 18 Channel 18 - */ -PARAM_DEFINE_INT32(RC_MAP_ENG_MOT, 0); - -/** - * Failsafe channel PWM threshold. - * - * Use RC_MAP_FAILSAFE to specify which channel is used to indicate RC loss via this threshold. - * By default this is the throttle channel. - * - * Set to a PWM value slightly above the PWM value for the channel (e.g. throttle) in a failsafe event, - * but below the minimum PWM value for the channel during normal operation. - * - * Note: The default value of 0 disables the feature (it is below the expected range). - * - * @min 0 - * @max 2200 - * @unit us - * @group Radio Calibration - */ -PARAM_DEFINE_INT32(RC_FAILS_THR, 0); - -/** - * Threshold for selecting return to launch mode - * - * 0-1 indicate where in the full channel range the threshold sits - * 0 : min - * 1 : max - * sign indicates polarity of comparison - * positive : true when channel>th - * negative : true when channelth - * negative : true when channelth - * negative : true when channelth - * negative : true when channelth - * negative : true when channelth - * negative : true when channelth - * negative : true when channelth - * negative : true when channelth - * negative : true when channelth - * negative : true when channel 0 - * - * @min 0 - * @max 2000 - * @group Radio Calibration - * - */ -PARAM_DEFINE_INT32(RC_RSSI_PWM_MIN, 1000); - -/** - * Max input value for RSSI reading. - * - * Only used if RC_RSSI_PWM_CHAN > 0 - * - * @min 0 - * @max 2000 - * @group Radio Calibration - * - */ -PARAM_DEFINE_INT32(RC_RSSI_PWM_MAX, 2000); diff --git a/src/modules/rc_update/params.yaml b/src/modules/rc_update/params.yaml new file mode 100644 index 0000000000..1022ffd216 --- /dev/null +++ b/src/modules/rc_update/params.yaml @@ -0,0 +1,1698 @@ +module_name: rc_update +parameters: +- group: Radio Calibration + definitions: + RC1_MIN: + description: + short: RC channel 1 minimum + long: Minimum value for RC channel 1 + type: float + default: 1000.0 + min: 800.0 + max: 1500.0 + unit: us + RC1_TRIM: + description: + short: RC channel 1 trim + long: Mid point value + type: float + default: 1500.0 + min: 800.0 + max: 2200.0 + unit: us + RC1_MAX: + description: + short: RC channel 1 maximum + long: Maximum value for RC channel 1 + type: float + default: 2000.0 + min: 1500.0 + max: 2200.0 + unit: us + RC1_REV: + description: + short: RC channel 1 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC2_MIN: + description: + short: RC channel 2 minimum + long: Minimum value for this channel. + type: float + default: 1000.0 + min: 800.0 + max: 1500.0 + unit: us + RC2_TRIM: + description: + short: RC channel 2 trim + long: Mid point value + type: float + default: 1500.0 + min: 800.0 + max: 2200.0 + unit: us + RC2_MAX: + description: + short: RC channel 2 maximum + long: Maximum value for this channel. + type: float + default: 2000.0 + min: 1500.0 + max: 2200.0 + unit: us + RC2_REV: + description: + short: RC channel 2 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC3_MIN: + description: + short: RC channel 3 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC3_TRIM: + description: + short: RC channel 3 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC3_MAX: + description: + short: RC channel 3 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC3_REV: + description: + short: RC channel 3 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC4_MIN: + description: + short: RC channel 4 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC4_TRIM: + description: + short: RC channel 4 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC4_MAX: + description: + short: RC channel 4 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC4_REV: + description: + short: RC channel 4 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC5_MIN: + description: + short: RC channel 5 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC5_TRIM: + description: + short: RC channel 5 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC5_MAX: + description: + short: RC channel 5 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC5_REV: + description: + short: RC channel 5 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC6_MIN: + description: + short: RC channel 6 minimum + long: Minimum value for this channel. + type: float + default: 1000 + unit: us + min: 800.0 + max: 1500.0 + RC6_TRIM: + description: + short: RC channel 6 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC6_MAX: + description: + short: RC channel 6 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC6_REV: + description: + short: RC channel 6 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC7_MIN: + description: + short: RC channel 7 minimum + long: Minimum value for this channel. + type: float + default: 1000 + unit: us + min: 800.0 + max: 1500.0 + RC7_TRIM: + description: + short: RC channel 7 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC7_MAX: + description: + short: RC channel 7 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC7_REV: + description: + short: RC channel 7 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC8_MIN: + description: + short: RC channel 8 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC8_TRIM: + description: + short: RC channel 8 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC8_MAX: + description: + short: RC channel 8 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC8_REV: + description: + short: RC channel 8 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC9_MIN: + description: + short: RC channel 9 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC9_TRIM: + description: + short: RC channel 9 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC9_MAX: + description: + short: RC channel 9 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC9_REV: + description: + short: RC channel 9 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC10_MIN: + description: + short: RC channel 10 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC10_TRIM: + description: + short: RC channel 10 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC10_MAX: + description: + short: RC channel 10 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC10_REV: + description: + short: RC channel 10 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC11_MIN: + description: + short: RC channel 11 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC11_TRIM: + description: + short: RC channel 11 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC11_MAX: + description: + short: RC channel 11 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC11_REV: + description: + short: RC channel 11 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC12_MIN: + description: + short: RC channel 12 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC12_TRIM: + description: + short: RC channel 12 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC12_MAX: + description: + short: RC channel 12 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC12_REV: + description: + short: RC channel 12 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC13_MIN: + description: + short: RC channel 13 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC13_TRIM: + description: + short: RC channel 13 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC13_MAX: + description: + short: RC channel 13 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC13_REV: + description: + short: RC channel 13 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC14_MIN: + description: + short: RC channel 14 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC14_TRIM: + description: + short: RC channel 14 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC14_MAX: + description: + short: RC channel 14 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC14_REV: + description: + short: RC channel 14 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC15_MIN: + description: + short: RC channel 15 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC15_TRIM: + description: + short: RC channel 15 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC15_MAX: + description: + short: RC channel 15 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC15_REV: + description: + short: RC channel 15 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC16_MIN: + description: + short: RC channel 16 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC16_TRIM: + description: + short: RC channel 16 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC16_MAX: + description: + short: RC channel 16 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC16_REV: + description: + short: RC channel 16 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC17_MIN: + description: + short: RC channel 17 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC17_TRIM: + description: + short: RC channel 17 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC17_MAX: + description: + short: RC channel 17 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC17_REV: + description: + short: RC channel 17 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC18_MIN: + description: + short: RC channel 18 minimum + long: Minimum value for this channel. + type: float + default: 1000 + min: 800.0 + max: 1500.0 + unit: us + RC18_TRIM: + description: + short: RC channel 18 trim + long: Mid point value + type: float + default: 1500 + min: 800.0 + max: 2200.0 + unit: us + RC18_MAX: + description: + short: RC channel 18 maximum + long: Maximum value for this channel. + type: float + default: 2000 + min: 1500.0 + max: 2200.0 + unit: us + RC18_REV: + description: + short: RC channel 18 reverse + long: Set to -1 to reverse channel. + type: float + values: + -1.0: Reverse + 1.0: Normal + default: 1.0 + min: -1.0 + max: 1.0 + RC_CHAN_CNT: + description: + short: RC channel count + long: |- + This parameter is used by Ground Station software to save the number + of channels which were used during RC calibration. It is only meant + for ground station use. + type: int32 + default: 0 + min: 0 + max: 18 + RC_MAP_ROLL: + description: + short: Roll control channel mapping + long: |- + The channel index (starting from 1 for channel 1) indicates + which channel should be used for reading roll inputs from. + A value of zero indicates the switch is not assigned. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_PITCH: + description: + short: Pitch control channel mapping + long: |- + The channel index (starting from 1 for channel 1) indicates + which channel should be used for reading pitch inputs from. + A value of zero indicates the switch is not assigned. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_FAILSAFE: + description: + short: Failsafe channel mapping + long: |- + Configures which RC channel is used by the receiver to indicate the signal was lost + (on receivers that use output a fixed signal value to report lost signal). + If set to 0, the channel mapped to throttle is used. + + Use RC_FAILS_THR to set the threshold indicating lost signal. By default it's below + the expected range and hence disabled. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_THROTTLE: + description: + short: Throttle control channel mapping + long: |- + The channel index (starting from 1 for channel 1) indicates + which channel should be used for reading throttle inputs from. + A value of zero indicates the switch is not assigned. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_YAW: + description: + short: Yaw control channel mapping + long: |- + The channel index (starting from 1 for channel 1) indicates + which channel should be used for reading yaw inputs from. + A value of zero indicates the switch is not assigned. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_AUX1: + description: + short: AUX1 Passthrough RC channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_AUX2: + description: + short: AUX2 Passthrough RC channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_AUX3: + description: + short: AUX3 Passthrough RC channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_AUX4: + description: + short: AUX4 Passthrough RC channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_AUX5: + description: + short: AUX5 Passthrough RC channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_AUX6: + description: + short: AUX6 Passthrough RC channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_PARAM1: + description: + short: PARAM1 tuning channel + long: |- + Can be used for parameter tuning with the RC. This one is further referenced as the 1st parameter channel. + Set to 0 to deactivate * + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_PARAM2: + description: + short: PARAM2 tuning channel + long: |- + Can be used for parameter tuning with the RC. This one is further referenced as the 2nd parameter channel. + Set to 0 to deactivate * + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_PARAM3: + description: + short: PARAM3 tuning channel + long: |- + Can be used for parameter tuning with the RC. This one is further referenced as the 3th parameter channel. + Set to 0 to deactivate * + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_ENG_MOT: + description: + short: RC channel to engage the main motor (for helicopters) + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_FAILS_THR: + description: + short: Failsafe channel PWM threshold + long: |- + Use RC_MAP_FAILSAFE to specify which channel is used to indicate RC loss via this threshold. + By default this is the throttle channel. + + Set to a PWM value slightly above the PWM value for the channel (e.g. throttle) in a failsafe event, + but below the minimum PWM value for the channel during normal operation. + + Note: The default value of 0 disables the feature (it is below the expected range). + type: int32 + default: 0 + min: 0 + max: 2200 + unit: us + RC_RSSI_PWM_CHAN: + description: + short: PWM input channel that provides RSSI + long: |- + 0: do not read RSSI from input channel + 1-18: read RSSI from specified input channel + + Specify the range for RSSI input with RC_RSSI_PWM_MIN and RC_RSSI_PWM_MAX parameters. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_RSSI_PWM_MIN: + description: + short: Min input value for RSSI reading + long: Only used if RC_RSSI_PWM_CHAN > 0 + type: int32 + default: 1000 + min: 0 + max: 2000 + RC_RSSI_PWM_MAX: + description: + short: Max input value for RSSI reading + long: Only used if RC_RSSI_PWM_CHAN > 0 + type: int32 + default: 2000 + min: 0 + max: 2000 +- group: Radio Switches + definitions: + RC_MAP_FLTMODE: + description: + short: Single channel flight mode selection + long: |- + If this parameter is non-zero, flight modes are only selected + by this channel and are assigned to six slots. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_RETURN_SW: + description: + short: Return switch channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_LOITER_SW: + description: + short: Loiter switch channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_OFFB_SW: + description: + short: Offboard switch channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_KILL_SW: + description: + short: Emergency Kill switch channel + long: |- + This channel immediately sets all outputs to their disarmed values, parachutes are NOT deployed. + Unlike termination this can be undone. Quickly flipping the switch back restores control. + System auto-disarms after 5 seconds, preflight checks and re-arming are then required. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_TERM_SW: + description: + short: Termination switch channel + long: |- + This channel triggers irreversible flight termination: + All outputs are disabled and set to their failsafe values (disarmed by default) + and MAVLink parachutes are triggered. + + Unlike a kill switch, this cannot be undone until system reboot. Use with caution. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_ARM_SW: + description: + short: Arm switch channel + long: |- + Use it to arm/disarm via switch instead of default throttle stick. If this is + assigned, arming and disarming via stick is disabled. + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_FLAPS: + description: + short: Flaps channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_TRANS_SW: + description: + short: VTOL transition switch channel mapping + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_GEAR_SW: + description: + short: Landing gear switch channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_MAP_FLTM_BTN: + description: + short: Button flight mode selection + long: |- + This bitmask allows to specify multiple channels for changing flight modes using + momentary buttons. Each channel is assigned to a mode slot ((lowest channel = slot 1). + The resulting modes for each slot X is defined by the COM_FLTMODEX parameters. + The functionality can be used only if RC_MAP_FLTMODE is disabled. + + The maximum number of available slots and hence bits set in the mask is 6. + type: bitmask + bit: + 0: Mask Channel 1 as a mode button + 1: Mask Channel 2 as a mode button + 2: Mask Channel 3 as a mode button + 3: Mask Channel 4 as a mode button + 4: Mask Channel 5 as a mode button + 5: Mask Channel 6 as a mode button + 6: Mask Channel 7 as a mode button + 7: Mask Channel 8 as a mode button + 8: Mask Channel 9 as a mode button + 9: Mask Channel 10 as a mode button + 10: Mask Channel 11 as a mode button + 11: Mask Channel 12 as a mode button + 12: Mask Channel 13 as a mode button + 13: Mask Channel 14 as a mode button + 14: Mask Channel 15 as a mode button + 15: Mask Channel 16 as a mode button + 16: Mask Channel 17 as a mode button + 17: Mask Channel 18 as a mode button + default: 0 + min: 0 + max: 258048 + RC_MAP_PAY_SW: + description: + short: Payload Power Switch RC channel + type: enum + values: + 0: Unassigned + 1: Channel 1 + 2: Channel 2 + 3: Channel 3 + 4: Channel 4 + 5: Channel 5 + 6: Channel 6 + 7: Channel 7 + 8: Channel 8 + 9: Channel 9 + 10: Channel 10 + 11: Channel 11 + 12: Channel 12 + 13: Channel 13 + 14: Channel 14 + 15: Channel 15 + 16: Channel 16 + 17: Channel 17 + 18: Channel 18 + default: 0 + min: 0 + max: 18 + RC_RETURN_TH: + description: + short: Threshold for selecting return to launch mode + long: |- + 0-1 indicate where in the full channel range the threshold sits + 0 : min + 1 : max + sign indicates polarity of comparison + positive : true when channel>th + negative : true when channelth + negative : true when channelth + negative : true when channelth + negative : true when channelth + negative : true when channelth + negative : true when channelth + negative : true when channelth + negative : true when channelth + negative : true when channelth + negative : true when channel