View Single Post
  #9   Spotlight this post!  
Unread 29-01-2006, 18:16
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: ACCELEROMETER! && GYRO!!!????

Quote:
Originally Posted by magical hands
since master code runs only like at 2.26 milliseconds or something. but we can assume that the accelerometer gives out values at every 2.26 m/s therefore we can say that velocity = acceleration/processor time^2. If i am wrong please correct me Thank you once again guys!
Its 26.2 ms and its a bad way to keep track of time. Use a timer instead.
Kevin's interrupt code should help you with this.