View Single Post
  #2   Spotlight this post!  
Unread 12-02-2008, 09:13
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Accelerometer functions

Quote:
Originally Posted by RJohnston View Post
I noticed there are GetVelocity and GetDistance functions in the library that are not documented, and if I call them (int GetDistance(unsigned char port) assumed for example), the values are always increasing even though the GetAcceleration values appear to be read perfectly fine.

Brad, please provide the docs for how to use these functions. I have initialized and started the accelerometer in question.

Thank you Brad, WPILib is working great for our team and has certainly simplified teaching the students how to program the robot and teach them C at the same time.
I tried very quickly to make those work, but there was too much error accumulation doing the integration and double integration. So the functions should have been removed, but it never happened. You're welcome to play with it, but I wouldn't count on getting usable data. Sorry about the confusion.

I think to really work it needs some more serious filtering to get reliable numbers.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute