Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nano+GY 85 via usb #59

Open
lukaszgrochola opened this issue Jun 1, 2017 · 3 comments
Open

Nano+GY 85 via usb #59

lukaszgrochola opened this issue Jun 1, 2017 · 3 comments

Comments

@lukaszgrochola
Copy link

Hello!

I made setup for head tracking. Nano with usb interface and gy-85. So i've upload sketch, tested in processing and movement is rly good but... When i try use it in opentrack/facetrack no ir, selecting all of the options etc. I have no movement in this programms.(in section about i see numbers running in, so the programms are getting data).

Any ideas whats wrong?

@GFA-SkyRanger
Copy link

I have exact the same problem.
On testings all works like a charm. but opentracker and facetracknoir wont get any datas with "Hatire Arduino".

@GFA-SkyRanger
Copy link

ok got it to work.
#define OUTPUT__STARTUP_STREAM_ON false
has set to true.
so just calibrate axes and configure it.

@SebastianBonn
Copy link

If you want to use GY-85, uncomment the following line in Razor_AHRS.ino:

#define HW__VERSION_CODE 10724 // SparkFun "9DOF Sensor Stick" version "SEN-10724" (HMC5883L magnetometer)

The only difference between SEN-10724 and GY-85 is the orientation of the HMC5883L (magnetometer) in relation to the orientation of accelerometer and gyro. This breaks the tilt compensation in Compass.ino, as the Magnetometer axes are differently orientated. A quick and dirty fix would be rotating the coordinate system in Compass.ino, for example as follows:

float x_new = magnetom[1];
float y_new = -magnetom[0];
float z_new = magnetom[2];

// Tilt compensated magnetic field X
mag_x = x_new * cos_pitch + y_new * sin_roll * sin_pitch + z_new * cos_roll * sin_pitch;
// Tilt compensated magnetic field Y
mag_y = y_new * cos_roll - z_new * sin_roll;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants