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)
You need to be a member of diydrones to add comments!
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.
Replies
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.