mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 11:59:58 +03:00
made gyrodiff for motion detection configurable, 0 = disabled
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@230 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
0976133f1f
commit
e59f639951
5 changed files with 2976 additions and 2970 deletions
|
@ -331,7 +331,7 @@ static void GYRO_Common(void)
|
|||
if (calibratingG == 1) {
|
||||
int16_t gyroDiff = gyroMax[axis] - gyroMin[axis];
|
||||
// check variance and startover if idiot was moving the model
|
||||
if (gyroDiff > 10) {
|
||||
if (cfg.moron_threshold && gyroDiff > cfg.moron_threshold) {
|
||||
calibratingG = 1000;
|
||||
gyroMin[0] = gyroMin[1] = gyroMin[2] = 0;
|
||||
gyroMax[0] = gyroMax[1] = gyroMax[2] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue