Go to Post Didn't you hear? After Atlanta, they aren't having nationals anymore. - Joe Ross [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2008, 19:10
Hazmatt's Avatar
Hazmatt Hazmatt is offline
Registered User
AKA: Matt
FRC #2645 (PowerSurge)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Muskegon
Posts: 51
Hazmatt will become famous soon enoughHazmatt will become famous soon enough
ADC_CHO not compiling in Kevin's code

We're trying to compile with Kevin's code using an analog input and printing it to the screen but when we tried to compile we got a code error saying that "symbol 'ADC_CH0' has not been defined"

arm_pos = Get_Analog_Value(ADC_CH0);
printf ("arm position = %d\r\n",arm_pos);
  #2   Spotlight this post!  
Unread 13-02-2008, 19:39
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: ADC_CHO not compiling in Kevin's code

Are you calling the old function for getting analog code? I believe Kevin Watson wrote replacement code for the ADC, using Get_ADC_Result(). Try using his ADC stuff, or else search the forums. There have been plenty of topics like this.
  #3   Spotlight this post!  
Unread 13-02-2008, 20:29
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: ADC_CHO not compiling in Kevin's code

Quote:
Originally Posted by Hazmatt View Post
We're trying to compile with Kevin's code using an analog input and printing it to the screen but when we tried to compile we got a code error saying that "symbol 'ADC_CH0' has not been defined"

arm_pos = Get_Analog_Value(ADC_CH0);
printf ("arm position = %d\r\n",arm_pos);
You just use a number from 1 to 16. Quick_ADC() works the same way.

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


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors compiling Kevin's new code (pragmas) Bryan Herbst Programming 11 31-01-2008 12:50
Problem with Kevin's code Tottanka Programming 5 04-11-2007 13:32
Kevin's Code? winners Programming 5 27-01-2006 16:32
Question about kevin's code ImmortalAres Programming 3 23-06-2005 11:13
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28


All times are GMT -5. The time now is 00:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi