terminal29 / Arduino-Tracker-Plugin

Plugin for OSVR that uses an Arduino + MPU6050 to do rotational headtracking.
8 stars 2 forks source link

Feature Request: MPU9250 support #4

Open Hydr0Dr4gon opened 7 years ago

Hydr0Dr4gon commented 7 years ago

Hi, I am trying to add MPU9250 support into your tracker code thinking "how hard can it be". Well it turns out very, either I am completely on the wrong track or my brain can't quite handle it. The MPU9250 is quite a popular IMU and with the inclusion of a compass it would eliminate your drifting problem. I know it's a bit to ask and I'm not sure if this is still under active development but if you were to add it in I think quite a few people would be grateful (including me).

Part of my problem might be that I am also using a Teensy LC (I have a few of them since they are about the cheapest M0 processor boards outside china) and I am just biting off more than I can chew.

terminal29 commented 7 years ago

Sorry for the delay in responding. Can you program the teensy using the arduino software or does it use something else, and does it support usb serial comms?

Hydr0Dr4gon commented 7 years ago

The teensy has an addon for arduino that allows it called teensyduino. It also has a slew of USB modes including serial comms.

terminal29 commented 7 years ago

can you get any of the examples from https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050 , https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU9150 , or any kind of library that will send the quaternion data over serial to run on the teensy?

Hydr0Dr4gon commented 7 years ago

well its the code isn't pretty but I am getting quaternion data over serial as fast as it can but it isn't being recognised by OSVR server, just gets Could not resolve source for /me/head

terminal29 commented 7 years ago

Sorry for the late response again, been super busy with uni lately. Do any of the descriptors (D:\<some text>) over serial get received and forwarded to the console?