new driver for MPU6500

157 views
Skip to first unread message

Flensburger

unread,
Feb 6, 2014, 12:27:46 PM2/6/14
to phoeni...@googlegroups.com
Hi,

short question.

Plan is to use on CoreF4 the new gyro MPU6500. Shield with chip is on travel. The MPU6500 uses in basic-mode the same adresses and registers, only the hardware ID is different. To use all features, we have to use additional bits and registers.

Variant a) Include the new one in the current MPU6000 driver

Variant b) Add an new driver

Discussion is opened

peabody124

unread,
Feb 6, 2014, 5:12:41 PM2/6/14
to phoeni...@googlegroups.com
If you look at how the MPU6150 and MPU6050 drivers are written they have a common mpu60x0.h file they include with the shared register definitions. I would do it that way to avoid having to hack up the drivers.

Flensburger

unread,
Feb 7, 2014, 9:45:20 AM2/7/14
to phoeni...@googlegroups.com
OK, thanks.

I need a new driver ID

enum pios_mpu6500_dev_magic {
    pios_mpu6500_dev_MAGIC = 0x9da9b3ed,  //TODO
};


How can i get or generate it?

peabody124

unread,
Feb 7, 2014, 9:54:41 AM2/7/14
to phoeni...@googlegroups.com
I normally hit the keyboard with my head and then delete the invalid hexadecimal characters

Flensburger

unread,
Feb 7, 2014, 10:55:57 AM2/7/14
to phoeni...@googlegroups.com
"I normally hit the keyboard with my head and then delete the invalid hexadecimal characters"
Whow, good solution, bur i will use my hands, i'm a little bit afraid


Am Donnerstag, 6. Februar 2014 18:27:46 UTC+1 schrieb Flensburger:

Tim van Peterson

unread,
Feb 7, 2014, 12:50:24 PM2/7/14
to phoeni...@googlegroups.com
perfect solution :D
Reply all
Reply to author
Forward
0 new messages