View Single Post
  #6   Spotlight this post!  
Unread 03-04-2008, 21:55
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: RobotC and Quad Encoders

Quote:
Originally Posted by tdlrali View Post
those should both be divided by time since the previous loop

(Distance - previous Distance)/time = speed (ticks)
(Speed - previous Speed)/time = acceleration (ticks)
Yes, we do that. Our loop is constrained to run at a fixed rate, 50 msec intervals. So the speeds are ticks-per-50msec-interval.