mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +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:
parent
8a5157db46
commit
1ff4bcec5a
1 changed files with 1 additions and 1 deletions
|
@ -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 };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue