1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Damnit. For higher bus speeds MPU6000 chip must be initialized twice in a row.

WTF piece of shit.
This commit is contained in:
James Cotton 2011-11-27 02:35:08 -06:00
parent deea7cde41
commit f7f94011ee

View File

@ -63,6 +63,7 @@ void PIOS_MPU6000_Init(const struct pios_mpu6000_cfg * new_cfg)
/* Configure the MPU6050 Sensor */
PIOS_MPU6000_Config(cfg);
PIOS_MPU6000_Config(cfg);
/* Configure EOC pin as input floating */
GPIO_Init(cfg->drdy.gpio, &cfg->drdy.init);