Browse Source

Nice catch on gyro-only fly fail

-robertb

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@410 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
master
timecop@gmail.com 11 years ago
parent
commit
1ff4bcec5a
  1. 2
      src/imu.c

2
src/imu.c

@ -50,12 +50,12 @@ void computeIMU(void)
Gyro_getADC();
if (sensors(SENSOR_ACC)) {
ACC_getADC();
getEstimatedAttitude();
} else {
accADC[X] = 0;
accADC[Y] = 0;
accADC[Z] = 0;
}
getEstimatedAttitude();
if (feature(FEATURE_GYRO_SMOOTHING)) {
static uint8_t Smoothing[3] = { 0, 0, 0 };

Loading…
Cancel
Save