Thread
:
RC Analog
View Single Post
#
6
01-02-2008, 18:17
JonathanLKS
Code::Blocks
FRC #0610 (The Coyotes)
Team Role: Leadership
Join Date: Feb 2006
Rookie Year: 2005
Location: Toronto
Posts: 36
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
Code::Blocks IDE for FIRST
Last edited by JonathanLKS : 01-02-2008 at
18:18
. Reason: typo
JonathanLKS
View Public Profile
Visit JonathanLKS's homepage!
Find all posts by JonathanLKS
Find CD-Media Photos by JonathanLKS
Find CD-Media Papers by JonathanLKS