Make INAV configurable

This commit is contained in:
Lorenz Meier
2015-03-01 18:32:08 +01:00
parent 8831e258b3
commit f3b0b41a0d
2 changed files with 23 additions and 4 deletions
@@ -288,6 +288,20 @@ PARAM_DEFINE_FLOAT(INAV_DELAY_GPS, 0.2f);
*/
PARAM_DEFINE_INT32(CBRK_NO_VISION, 0);
/**
* INAV enabled
*
* If set to 1, use INAV for position estimation
* the system uses the compined attitude / position
* filter framework.
*
* @min 0.0
* @max 1.0
* @unit s
* @group Position Estimator INAV
*/
PARAM_DEFINE_INT32(INAV_ENABLED, 0);
int parameters_init(struct position_estimator_inav_param_handles *h)
{
h->w_z_baro = param_find("INAV_W_Z_BARO");