View Single Post
  #3   Spotlight this post!  
Unread 13-02-2008, 20:29
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: ADC_CHO not compiling in Kevin's code

Quote:
Originally Posted by Hazmatt View Post
We're trying to compile with Kevin's code using an analog input and printing it to the screen but when we tried to compile we got a code error saying that "symbol 'ADC_CH0' has not been defined"

arm_pos = Get_Analog_Value(ADC_CH0);
printf ("arm position = %d\r\n",arm_pos);
You just use a number from 1 to 16. Quick_ADC() works the same way.

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