This commit is contained in:
treymarc 2014-04-17 20:45:09 +00:00
parent 5468a9cfa0
commit e39636cc00
1 changed files with 2 additions and 1 deletions

View File

@ -410,6 +410,7 @@ int getEstimatedAltitude(void)
// D // D
BaroPID -= constrain(cfg.D8[PIDVEL] * (accZ_tmp + accZ_old) / 64, -150, 150); BaroPID -= constrain(cfg.D8[PIDVEL] * (accZ_tmp + accZ_old) / 64, -150, 150);
accZ_old = accZ_tmp; accZ_old = accZ_tmp;
return 1; return 1;
} }
#endif /* BARO */ #endif /* BARO */