Go to Post 118 embodies everything this entire program is supposed to be about: INSPIRATION. Respect that. Acknowledge that. Support that. - barn34 [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 02-02-2008, 16:14
p_a_3 p_a_3 is offline
Registered User
FRC #1648
 
Join Date: Jan 2008
Location: Atlanta
Posts: 3
p_a_3 is an unknown quantity at this point
Unable to resolve ADC_CH0

I have been unable to locate this. In ifi_frc.h is

#define rc_ana_in01 ADC_CH0

Can someone please tell me where it is defined?

Thanks
  #2   Spotlight this post!  
Unread 02-02-2008, 16:43
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: Unable to resolve ADC_CH0

Quote:
Originally Posted by p_a_3 View Post
I have been unable to locate this. In ifi_frc.h is

#define rc_ana_in01 ADC_CH0

Can someone please tell me where it is defined?

Thanks
If you're using the legacy IFI code in ifi_code.c, you should use the values found in mcc18\h\adc.h (e.g., ADC_CH0, ADC_CH1, etc).

If you're using my code, you just pass in a number corresponding to the channel (e.g., Get_ADC_Result(1)).

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

Last edited by Kevin Watson : 02-02-2008 at 16:46.
  #3   Spotlight this post!  
Unread 02-02-2008, 18:06
p_a_3 p_a_3 is offline
Registered User
FRC #1648
 
Join Date: Jan 2008
Location: Atlanta
Posts: 3
p_a_3 is an unknown quantity at this point
Re: Unable to resolve ADC_CH0

Please excuse my confusion here.

The base code we used was located in ifi_frc_sensor_30

The reference to ADC_CH0 was in ifi_frc.h of that project. I suspected that these defines were values 0, 1, etc. When I looked at an old mcc18\h\adc.h I found

#define ADC_CH0 0b10000111 // Channel 0

Should I use these values or simple integers?

Thanks,
Paul Alexander
  #4   Spotlight this post!  
Unread 02-02-2008, 20:26
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: Unable to resolve ADC_CH0

Quote:
Originally Posted by p_a_3 View Post
Please excuse my confusion here.

The base code we used was located in ifi_frc_sensor_30

The reference to ADC_CH0 was in ifi_frc.h of that project. I suspected that these defines were values 0, 1, etc. When I looked at an old mcc18\h\adc.h I found

#define ADC_CH0 0b10000111 // Channel 0

Should I use these values or simple integers?

Thanks,
Paul Alexander
I'll have a look at it this evening...

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 03-02-2008, 01:42
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: Unable to resolve ADC_CH0

Quote:
Originally Posted by p_a_3 View Post
I have been unable to locate this. In ifi_frc.h is

#define rc_ana_in01 ADC_CH0

Can someone please tell me where it is defined?

Thanks
Sorry about the confusion. I've written replacement code that has the same functionality as the old IFI code. I'm not sure how I'll incorporate it yet, but you can download it here and drop it into your project.

-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
Unable to see the sensors or pneumatics manual Chaos204 General Forum 5 06-01-2008 13:11
Help! unable to locate 'p18cxxx.h' ducttapehaxor Programming 1 24-01-2006 16:13
Error: Unable to locate 'stdio.h' phrontist Programming 4 09-02-2005 19:59
Unable to transfer Document in Streamline squide 3D Animation and Competition 12 16-02-2004 23:40


All times are GMT -5. The time now is 21:18.

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