The MPU9150Lib library wasn’t written for multiple devices on the same processor as we didn’t know if anyone else was doing this. The MotionDriver part of the library uses global structures and so needs modification for multiple devices. In theory you can put two MPU9150s on the same I2C bus but we have had problems with that although some users have reported success (take a look at our blog http://pansenti.wordpress.com for updates). Using a version of the code written for a different system we have successfully used four of these via an I2C switch. If there’s interest we might do a future release of the library with multi-IMU support.
↧