1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 03:20:00 +03:00

Nice catch on gyro-only fly fail

-robertb

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@410 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop@gmail.com 2013-09-21 07:57:28 +00:00
parent 8a5157db46
commit 1ff4bcec5a

View file

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