View Single Post
  #1   Spotlight this post!  
Unread 11-02-2008, 02:12
RJohnston's Avatar
RJohnston RJohnston is offline
Registered User
FRC #1620 (Robolution)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Pickering, ON
Posts: 3
RJohnston is an unknown quantity at this point
Accelerometer functions

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.