View Single Post
  #11   Spotlight this post!  
Unread 18-01-2006, 14:13
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: Analog-to-Digital Converter Code

Quote:
Originally Posted by spiff
Kevin,

The adc_readme.txt says to remove the call to Set_Number_of_Analog_Channels() in user_routines.c. But the user_routines.c file included in the same zip (frc_adc.zip) still has it in. Same situation in the user_routines.c file in the frc_gyro.zip.

So, should the call remain as is, or be commented out?

Thanks
Hmmm... I guess I should follow my own instructions <grin>. Actually, it doesn't matter as long as the call to Initialize_ADC() happens after the call to Set_Number_of_Analog_Channels() (it does in all the ADC-related code I've posted). If you're happy with my code, I'd just remove the call to Set_Number_of_Analog_Channels(), otherwise just comment it out in case you want to fall back to IFI's code.

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