mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
beginnings of cli editing support by cehteh; (still buggy)
added and began work on integrating failsafe_detect_threshold got rid of acc_lpf_for_velocity since that seemed no longer used. git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@317 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
3f8fc1b509
commit
b6fc652b20
8 changed files with 103 additions and 25 deletions
|
@ -2,7 +2,6 @@
|
|||
#include "mw.h"
|
||||
|
||||
int16_t gyroADC[3], accADC[3], accSmooth[3], magADC[3];
|
||||
float accLPFVel[3];
|
||||
int16_t acc_25deg = 0;
|
||||
int32_t baroPressure = 0;
|
||||
int32_t baroTemperature = 0;
|
||||
|
@ -220,7 +219,6 @@ static void getEstimatedAttitude(void)
|
|||
} else {
|
||||
accSmooth[axis] = accADC[axis];
|
||||
}
|
||||
accLPFVel[axis] = accLPFVel[axis] * (1.0f - (1.0f / cfg.acc_lpf_for_velocity)) + accADC[axis] * (1.0f / cfg.acc_lpf_for_velocity);
|
||||
accMag += (int32_t)accSmooth[axis] * accSmooth[axis];
|
||||
}
|
||||
accMag = accMag * 100 / ((int32_t)acc_1G * acc_1G);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue