View Single Post
  #1   Spotlight this post!  
Unread 06-02-2008, 14:07
M_dalgashon M_dalgashon is offline
Registered User
FRC #2230
 
Join Date: Jan 2008
Location: Israel
Posts: 3
M_dalgashon is an unknown quantity at this point
We need help with the analog inputs

Hello, I'm from team 2230, and we use potentiometers to check axis. Last year we used one potentiometer, this year we use two of them... But when we connect them both to analog inputs 1 and 2, for example, the rc only reads one of them, the one on analog input 1. We tried switching them, moving them to other pins, no use.
We have another problem, which may be connected... When we write the following piece of code:
temp = Get_Analog_Value(rc_ana_in01);
We get the following error:
M:\FRC2008\Programming\potentiometer\teleop.c:185: Error [1105] symbol 'ADC_CH0' has not been defined
To the best of my knowledge, ADC_CH0 is defined... Can someone help?

Thank you very much
Team 2230