View Single Post
  #5   Spotlight this post!  
Unread 25-01-2016, 18:08
slibert slibert is online now
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 356
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Speed Encoders or Gyros?

Quote:
Originally Posted by akavoor13 View Post
Thanks, guys! I am using Java, by the way. If you can tell me where to look for sample code, that would be great!
It'd help the community to help you if you could indicate what kind of drive system you are using (arcade, omniwheel, mecnaum), how many motors you are using, etc.

As noted in my previous post, you will likely need to understand the "kinematics equation" and the "inverse kinematics equation" for your drive system if you want to use the encoders to track position. These equations are different for each type of drive system, and can take into account your wheel diameter and the distance between your two front wheels and your back and front wheels.

I also highly recommend doing some experimentation on your own (by displaying the values from the encoders on all your wheels on the drive station dashboard). This will help you get a conceptual "feel" for the encoder data and how it relates to the motion of your robot.