Thread: KOP Gyro Lag
View Single Post
  #11   Spotlight this post!  
Unread 14-02-2008, 16:32
FRC4ME FRC4ME is offline
Registered User
FRC #0339
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Fredericksburg, VA
Posts: 324
FRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant future
Re: KOP Gyro Lag

Quote:
Originally Posted by Kevin Watson View Post
Can you zip up your build directory and e-mail it to me? Also, make sure you've plugged the gyro into channel one. If you plug it into a different channel than specified in gyro.h, the ADC can still read residual charge from the sample-and-hold capacitor if that input is floating. How is the gyro wired? Perhaps it's output driver is weak and having a tough time driving the capacitance of the cabling? Ideally, the cable should be as short as possible.

-Kevin
Sure. I'll send you our version that uses your code. We also have a version that uses IFI's base code. Both exhibited the gyro lag problem.

The topic that I linked to above tells me it isn't an ADC problem, since the person who posted that topic tested the same analog input with a POT and there was no lag at all.