View Single Post
  #2   Spotlight this post!  
Unread 02-02-2008, 16:43
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: Unable to resolve ADC_CH0

Quote:
Originally Posted by p_a_3 View Post
I have been unable to locate this. In ifi_frc.h is

#define rc_ana_in01 ADC_CH0

Can someone please tell me where it is defined?

Thanks
If you're using the legacy IFI code in ifi_code.c, you should use the values found in mcc18\h\adc.h (e.g., ADC_CH0, ADC_CH1, etc).

If you're using my code, you just pass in a number corresponding to the channel (e.g., Get_ADC_Result(1)).

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

Last edited by Kevin Watson : 02-02-2008 at 16:46.