AP_InertialSensor: correct USE param storage index
USE, USE2, USE3 have 20, 21, 21 but should be 20, 21, 22
This commit is contained in:
parent
70c7e93dd2
commit
04000faa5f
@ -272,7 +272,7 @@ const AP_Param::GroupInfo AP_InertialSensor::var_info[] PROGMEM = {
|
|||||||
// @User: Advanced
|
// @User: Advanced
|
||||||
AP_GROUPINFO("USE", 20, AP_InertialSensor, _use[0], 1),
|
AP_GROUPINFO("USE", 20, AP_InertialSensor, _use[0], 1),
|
||||||
|
|
||||||
#if INS_MAX_INSTANCES > 2
|
#if INS_MAX_INSTANCES > 1
|
||||||
// @Param: USE2
|
// @Param: USE2
|
||||||
// @DisplayName: Use second IMU for attitude, velocity and position estimates
|
// @DisplayName: Use second IMU for attitude, velocity and position estimates
|
||||||
// @Description: Use second IMU for attitude, velocity and position estimates
|
// @Description: Use second IMU for attitude, velocity and position estimates
|
||||||
@ -280,13 +280,13 @@ const AP_Param::GroupInfo AP_InertialSensor::var_info[] PROGMEM = {
|
|||||||
// @User: Advanced
|
// @User: Advanced
|
||||||
AP_GROUPINFO("USE2", 21, AP_InertialSensor, _use[1], 1),
|
AP_GROUPINFO("USE2", 21, AP_InertialSensor, _use[1], 1),
|
||||||
#endif
|
#endif
|
||||||
#if INS_MAX_INSTANCES > 3
|
#if INS_MAX_INSTANCES > 2
|
||||||
// @Param: USE3
|
// @Param: USE3
|
||||||
// @DisplayName: Use third IMU for attitude, velocity and position estimates
|
// @DisplayName: Use third IMU for attitude, velocity and position estimates
|
||||||
// @Description: Use third IMU for attitude, velocity and position estimates
|
// @Description: Use third IMU for attitude, velocity and position estimates
|
||||||
// @Values: 0:Disabled,1:Enabled
|
// @Values: 0:Disabled,1:Enabled
|
||||||
// @User: Advanced
|
// @User: Advanced
|
||||||
AP_GROUPINFO("USE3", 21, AP_InertialSensor, _use[2], 0),
|
AP_GROUPINFO("USE3", 22, AP_InertialSensor, _use[2], 0),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user