View Single Post
  #2   Spotlight this post!  
Unread 06-02-2008, 15:19
JimWright949's Avatar
JimWright949 JimWright949 is offline
The Owen Day of Seattle
AKA: Jim Wright
FRC #4542 (Titanium Talons)
Team Role: Mentor
 
Join Date: Sep 2003
Rookie Year: 2003
Location: Redmond, WA
Posts: 94
JimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to behold
Re: We need help with the analog inputs

ADC_CH0 is defined in adc.h, which should be located in the compiler's directory. mcc18v2 in my case. rc_ana_in01 is defined in ifi_aliases.h which includes adc.h.

If the compiler can't find these .h files I would think that it should have given you an error saying it can't find the .h file.

From teleop.c double check that you have all the .h files included. Look at adc.h to see if there is any problems with it, and that you see ADC_CH0 is defined there.

The only other thing I can think of is check to see if you have selected the correct device. We are using the PIC18F8722. To see if you have it right, select Configure|Select Device... and you should have PIC18F8722.

-jim

Last edited by JimWright949 : 06-02-2008 at 15:21.