View Single Post
  #2   Spotlight this post!  
Unread 12-03-2004, 09:39
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,847
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Differences programming ADXRS150EBs to BEI Gyrochips?

I believe Ken is competing in Pittsburgh this weekend, so you may not hear from him as often as usual (but I bet he'll find time to get on-line).

You will need to take the ADXRS150 40 Hz sample rate into account when calculating your heading. Depending on how you've setup your gyro sampling for the old gyro, you'll need to scale each gyro sample to average the over-sampling.
If you are using a timer to specify the gyro sample rate in the fast loop, for instance, and you are taking 100 samples per second then you might have the line:
Code:
gyro_sum += gyro_sample * 40 / 100;
Are you are flat-out sampling the gyro every time through the fast loop?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-03-2004 at 09:52.