mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
Gyro native rate sampling, filtering, and scheduler restructuring
This commit is contained in:
parent
b11565efbe
commit
f584780944
42 changed files with 718 additions and 421 deletions
|
@ -33,6 +33,8 @@
|
|||
#include "config/config.h"
|
||||
#include "fc/runtime_config.h"
|
||||
|
||||
#include "flight/pid.h"
|
||||
|
||||
#include "sensors/sensors.h"
|
||||
#include "sensors/adcinternal.h"
|
||||
#include "sensors/acceleration.h"
|
||||
|
@ -68,7 +70,7 @@ bool sensorsAutodetect(void)
|
|||
|
||||
#ifdef USE_ACC
|
||||
if (gyroDetected) {
|
||||
accInit(gyro.targetLooptime);
|
||||
accInit(gyro.accSampleRateHz);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue