DavidEGrayson / minimu9-ahrs

Program for reading data from the Pololu MinIMU-9 over I²C. Works on the Raspberry Pi and other embedded ARM Linux boards.
Other
167 stars 68 forks source link

Support for minimu9 v3 #12

Closed Error323 closed 10 years ago

Error323 commented 10 years ago

As stated in the wiki, currently only v1 and v2 are supported. Do you have an ETA for when v3 support will be there? I just ordered v3. How will v3 differ from v2 in terms of code? Maybe I can help.

harmsm commented 10 years ago

I have forked the code and modified it to handle v3. (https://github.com/harmsm/minimu9-ahrs/commit/bb9be3719f2740640236d8a7ef362b9a63c2cc19) I tested it out last night on my v3 connected to my raspberry pi via I2C. It compiles, runs and spits out reasonable values. I set it up so the code checks for the v3 hardware and, if not found, then does the checks it did for the old v1 and v2 hardware.

This said: 1) I don't usually hack around in memory registers, so the code should be checked before a merge, and 2) I have not tested it on v1 or v2 hardware.

DavidEGrayson commented 10 years ago

Thanks for sharing your code, @harmsm. I decided to implement the MinIMU-9 v3 support myself and it is now available on a development branch: https://github.com/DavidEGrayson/minimu9-ahrs/tree/dev/david/v3

I still need to test this branch a MinIMU-9 v2 but it seems to work fine with the MinIMU-9 v3.

DavidEGrayson commented 10 years ago

The support for the MinIMU-9 v3 was implemented in commit ec9a75539d89e1166ed7fcb28acdd611c0b8a103 and is now available in version 2.0.0.