1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

correction for MPU6500

ident

correction targets
This commit is contained in:
borisbstyle 2015-09-18 15:09:35 +02:00
parent 876c027d17
commit d93f83e7ae
2 changed files with 4 additions and 3 deletions

View file

@ -25,7 +25,8 @@
#define MPU6500_RA_ACCEL_CFG (0x1C)
#define MPU6500_RA_LPF (0x1A)
#define MPU6500_RA_RATE_DIV (0x19)
#define MPU6500_RA_INT_STATUS (0x38)
#define MPU6500_RA_INT_ENABLE (0x38)
#define MPU6500_RA_INT_STATUS (0x3A)
#define MPU6500_WHO_AM_I_CONST (0x70)

View file

@ -48,7 +48,7 @@ void gyroUpdateSampleRate(uint32_t looptime, uint8_t lpf, uint8_t syncGyroToLoop
int minLooptime;
if (syncGyroToLoop) {
#if defined(SPRACINGF3) || defined(ALIENWIIF3) || defined(NAZE32PRO) || defined(STM32F3DISCOVERY) || defined(CHEBUZZF3) || defined(EUSTM32F103RC) || defined(PORT103R) || defined(MOTOLAB)
#if defined(SPRACINGF3) || defined(ALIENWIIF3) || defined(NAZE32PRO) || defined(STM32F3DISCOVERY) || defined(CHEBUZZF3) || defined(PORT103R) || defined(MOTOLAB)
if (lpf == INV_FILTER_256HZ_NOLPF2) {
gyroSamplePeriod = 125;
@ -74,7 +74,7 @@ void gyroUpdateSampleRate(uint32_t looptime, uint8_t lpf, uint8_t syncGyroToLoop
gyroSamplePeriod = 1000;
minLooptime = 1000; // Full sampling
}
#elif defined(COLIBRI_RACE)
#elif defined(COLIBRI_RACE) || defined(EUSTM32F103RC)
if (lpf == INV_FILTER_256HZ_NOLPF2) {
gyroSamplePeriod = 125;