View Single Post
  #2   Spotlight this post!  
Unread 15-02-2008, 23:05
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: Gyro Sensor Questions

we've been using 300deg/sec analog devices gyros since 2004. We've had great success with them for driving straight. We've also integrated the signal to give an angular orientation. Since the k.o.p. gyros will saturate at lower turn rates, we have not used them, but for aiding in straight driving, I see no reason not to try them. We sample the gyro during disabled mode and let a neutral point value settle out. This becomes neutral for the next 2min and 15 sec. We typically take the average of the current and last pass readings and use that, minus, the neutral point, as the error. Then with a multipler (proportional gain) like 1/4 * the error , we add the delta value to the motor pwm on the side it is drifting towards.

We just read the gyro in the main loop (38hz), and it works like a charm.
__________________

Don't PANIC!
S. P. A. M.