Closed qwerty258 closed 7 years ago
Are you sure you have not hit any memory/heap limit? The solution is not very streamlined so might need a lot of resources
On Fri, 28 Apr 2017 at 11:26, yaofei zheng notifications@github.com wrote:
The example code works fine on Mega2560, but it won't work when integrated in my own code.
At first I was lured into debug mpu_init() because it always return error code until the return value in example is printed out.
Then I found that the calling order of dmp_enable_feature() and mpu_set_dmp_state() in example may be wrong because when I made the mpu_set_dmp_state() last call in mympu_open () it worked.
The big question is why the example works fine ...
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rpicopter/ArduinoMotionSensorExample/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJ4NjTDp2tpVGVVMHgoNw5vzAmM-EWfks5r0b7IgaJpZM4NLUMQ .
The solution for now is give raw data from register to Raspberry Pi to calculate orientation. Thank you for reply.
The example code works fine on Mega2560, but it won't work when integrated in my own code.
At first I was lured into debug
mpu_init()
because it always return error code until the return value in example is printed out.Then I found that the calling order of
dmp_enable_feature()
andmpu_set_dmp_state()
in example may be wrong because when I made thempu_set_dmp_state()
last call inmympu_open ()
it worked.The big question is why the example works fine ...