Thread: CAN distance
View Single Post
  #2   Spotlight this post!  
Unread 28-06-2012, 17:16
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: CAN distance

Quote:
Originally Posted by nydnh01 View Post
I have a encoder connected to the jaguar and when testing i get rpm readings but i was wondering if it is possible to get distance readings from the encoder?
Are you calling the GetSpeed() function of the WPI lib? If so, there is also a GetPosition() function that returns the encoder position. You can derive the distance from it with information such as your gear ratio and wheel diameter.
__________________
Reply With Quote