mc_att_control: use a maximum of 3 gyros

This commit is contained in:
Beat Küng
2017-01-19 19:24:52 +01:00
committed by Lorenz Meier
parent 21a3e4d36a
commit c1b1d03515
@@ -111,7 +111,7 @@ extern "C" __EXPORT int mc_att_control_main(int argc, char *argv[]);
#define AXIS_INDEX_YAW 2
#define AXIS_COUNT 3
#define MAX_GYRO_COUNT 1
#define MAX_GYRO_COUNT 3
class MulticopterAttitudeControl
{
@@ -405,7 +405,7 @@ MulticopterAttitudeControl::MulticopterAttitudeControl() :
_sensor_correction_sub(-1),
/* gyro selection */
_gyro_count(MAX_GYRO_COUNT),
_gyro_count(1),
_selected_gyro(0),
/* publications */