View Single Post
  #5   Spotlight this post!  
Unread 03-04-2008, 15:07
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: RobotC and Quad Encoders

Quote:
Distance MINUS previous Distance = speed (ticks)
Speed MINUS previous Speed = acceleration (ticks)
those should both be divided by time since the previous loop

(Distance - previous Distance)/time = speed (ticks)
(Speed - previous Speed)/time = acceleration (ticks)