Quote:
|
Originally Posted by Leav
is this normal?
how can i transofrm these to normal 0-255 values?
|
I can't really tell you if those values are normal since we haven't looked at the provided accelerometer yet, but I can tell you why it's not a value from 0-255. The RC analog inputs are 10-bit, meaning they have a range of 0-1023. You can obtain a 0-255 value by dropping the lower two bits (divide by four or use the bit-shift operator (>>)), but if you do that you're just throwing away accuracy which is usually a bad idea.