View Single Post
  #7   Spotlight this post!  
Unread 29-01-2006, 14:43
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: ACCELEROMETER! && GYRO!!!????

I think I understand your question. When you read the accelerometers or the gyro that is the instantainous value at that point in time

the question is, how often is your SW reading the sensor output? (how many mS between readings?) This depends on where you put the read-ADC command in your code, and how long it takes for you code to loop through from start to end.

There are ways you can measure this directly. If you toggle an output port bit each time you read the sensors, then you can measure the frequency of that toggling bit with an oscilloscope, or with a digital volt meter that has a frequency function. Since you are toggling the bit on each sensor read your sample rate will be twice the frequency of the output bit. (Frequency is positive edge to postive edge, and you are reading the sensor at both the postive edge and the negative edge of your toggling output bit).

If you do this make sure your robot is running the code that will be running during operation. If your code is doing a lot of calculations, that could slow down the main-code loop cycle time.

BTW: I cant believe I missed this in your first post. V=A*T

A = V / T

Last edited by KenWittlief : 29-01-2006 at 14:51.