mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Fixed problems with accelerometer.
This commit is contained in:
parent
3ee16bd490
commit
6394cc275d
2 changed files with 6 additions and 6 deletions
|
@ -362,7 +362,7 @@ bool accInit(uint32_t gyroSamplingInverval)
|
|||
}
|
||||
acc.dev.acc_1G = 256; // set default
|
||||
acc.dev.initFn(&acc.dev); // driver initialisation
|
||||
acc.dev.acc_1G_rec = 1 / acc.dev.acc_1G;
|
||||
acc.dev.acc_1G_rec = 1.0f / acc.dev.acc_1G;
|
||||
// set the acc sampling interval according to the gyro sampling interval
|
||||
switch (gyroSamplingInverval) { // Switch statement kept in place to change acc sampling interval in the future
|
||||
case 500:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue