View Single Post
  #2   Spotlight this post!  
Unread 16-01-2005, 17:14
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Acceleration Sensor Connected, but values are odd....

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.