I had the same problem as you. I renamed the original library "I2Cdev" in my libraries folder and it compiled fine.But after the values show up on Serial monitor for about 5s, it froze. When I close and reopen Serial monitor, it shows the values and froze again after 5s. I don't know what's wrong.
Hello,I'm novice to this library. I'm looking for a way to detect acceleration also to determine the platform speed and acceleration. Is it possible to get using this library?
Hi Gregory !Fisrt, I'm sorry for my long silence, I've had urgent problems to solve and my MPU9250 was not my priority since september !I yesterday downloaded your last version of avrcopter, and... It doesn' work :-(I use an Arduino UNO, just like you.When using I2C-scanner, I can find a device at I2C adress 0x68.I do not use the makefile, but the ide compiler... Is that a problem ?In your code, I've add #define MPU9250 in inv_mpu.h, and #define MPU_DEBUG in all .hI get this :MPU init: 3Free mem: 208I've searched were the error comes from. It happens at the very beginning of the program, at the call of ret = mympu_open(200);I've searched a bit more...In mpu.cpp, function mympu_open(...), call to mpu_init(NULL) returns -7Then, I've found that comes from inv_mpu.cpp, function mpu-read_mem, in wich st->chip_cfg.sensors equal 0Have you any Idea of the origin of the problem ?Many thanks !PS : have you tryed the MPU9250 ? If not, and if you are interested, I'd be happy to send you one on a breakout board ! ;-)
Hi CWhy,Can you try to call mpu_set_sensors before mpu_init: https://github.com/rpicopter/ArduinoMotionSensorExample/blob/master/mpu.cpp#L36What does mpu_set_sensors return?Thanks,Gregory
flag=0, yaw=1113416067, pitch=-1037714598, roll=1113299994flag=0, yaw=1113416553, pitch=-1037714800, roll=1113299207flag=0, yaw=1113416335, pitch=-1037714964, roll=1113299377flag=0, yaw=1113416579, pitch=-1037715221, roll=1113298567flag=0, yaw=1113416122, pitch=-1037715394, roll=1113299198flag=0, yaw=1113415981, pitch=-1037715258, roll=1113299644flag=0, yaw=1113415786, pitch=-1037715344, roll=1113299659
case 2: err_o++; Serial.println(err_o); return;
case 2: err_o++; ret = mympu_clearfifo(); err_o++; Serial.println(err_o); return;
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16