Thread: RC Analog
View Single Post
  #6   Spotlight this post!  
Unread 01-02-2008, 18:17
JonathanLKS JonathanLKS is offline
Code::Blocks
FRC #0610 (The Coyotes)
Team Role: Leadership
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Toronto
Posts: 36
JonathanLKS will become famous soon enough
Send a message via MSN to JonathanLKS
Re: RC Analog

It's also important to note that Get_ADC_Result uses just the number (1, 2, 3 etc...) not rc_ana_inXX

So instead of
Code:
Get_Analog_Value(rc_ana_in01);
you'd write
Code:
Get_ADC_Result(1);
You'll also need to enable the ADC in teleop.c and enable the ADC timer in ifi_frc.h
__________________

Team 610 [ Co-Leader | Head Programmer | Webmaster ]
We're attending: Greater Toronto Regional, San Diego Regional, Championship

Last edited by JonathanLKS : 01-02-2008 at 18:18. Reason: typo