Put parameters inside library. Get rid of unnecessary activation logic

This commit is contained in:
baumanta
2018-11-20 14:11:33 +01:00
committed by Beat Küng
parent dd45fa6541
commit f5369db245
4 changed files with 61 additions and 39 deletions
@@ -738,22 +738,3 @@ PARAM_DEFINE_INT32(MPC_OBS_AVOID, 0);
*/
PARAM_DEFINE_INT32(MPC_YAW_MODE, 0);
/**
* Flag to enable the use of a MAVLink range sensor for collision avoidance.
*
* @boolean
* @group Multicopter Position Control
*/
PARAM_DEFINE_INT32(MPC_COL_PREV, 0);
/**
* Minimum distance the vehicle should keep to all obstacles
*
* Only used in Position mode when collision avoidance is active (see MPC_COL_AVOID).
*
* @min 0
* @max 15
* @unit meters
* @group Multicopter Position Control
*/
PARAM_DEFINE_FLOAT(MPC_COL_PREV_D, 4.0f);