Convert raw value to true value of Gyro and Accelerometer


Anybody knows how to convert the raw value from gyro and accelerometer to true value? Because I did not find any information. Thanks. (I have a full ardupilot Mega Kit)

 

Tags: accelerometer, gyro, raw, value

Views: 235

Reply to This

Replies to This Discussion

RTFM!

JK... All you have to do is take the max number of the bit width in the value (8 bits = 256, 16 bits = 65,535, etc.).  Take the full scale range (2g, 4g, etc.) and divide by the max number.  That gives you the G value per number in your reading.

Now take your reading and subtract half of the max number, then multiply that by the G per number figure. 

You have to remember that the lower numbers are actually going to be negative values.

Sorry for such a clumsy explanation, but hopefully it helps.

Thank you. But is there a manual, I really did not find it online. I am a little confused.

Look up the datasheet for the chip.  It's an invensense 6000 something.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service