bb_mpu9150 icon indicating copy to clipboard operation
bb_mpu9150 copied to clipboard

Can't get the Z value magnet

Open rde-mato opened this issue 8 years ago • 2 comments

Yop !

I compiled the code on a Raspberry pi zero, I had to modify .addr to 0x69 in the struct hw_s. I've then tried to do the calibration with imucal, but Z doesn't seem to work. I have this result: X -1101|-956|-956 Y -1116|-970|-970 Z -4912|-4912|-4912 -> stuck

The Z value is stuck...

the card I am using: card

I have a friend working on the 6050 card and he has the same issue.

What am I missing? Do you have any tip? Thanks

rde-mato avatar Jul 08 '17 12:07 rde-mato

Hello @rde-mato,

This code was developed quite a while ago and meant for the BeagleBone White/Black. I don't have the right hardware with me anymore to reproduce your error but from your comment, it seems there's an error with the mag data within the IMU. I'd suggest looking at more contemporary drivers of this (and/or similar) device and compare implementations.

vmayoral avatar Jul 08 '17 14:07 vmayoral

On a second thought, I'll leave this open for now. Feel free to report your progress.

vmayoral avatar Jul 08 '17 14:07 vmayoral