View Single Post
  #6   Spotlight this post!  
Unread 04-02-2006, 19:48
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Problems with the gyro

Quote:
Originally Posted by Conan
I tried attaching the gyro to other analog inputs. I must be doing this wrong (or the gyro is broken). In Kevin's code, the only part I should change to switch the analog input port is the #define in gyro.h, right? I tried switching this from "1" to "2", and now there is NO output. The same thing happened on input port 3.
It didn't work because the ADC software, by default, only samples one channel. If you move the gyro to ADC channel 2, you'll need to edit adc.h to sample at least two channels.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org