Go to Post FIRST competitions ARE holidays, or they should be at least. - Kel D [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Spotlight this post!  
Unread 02-02-2008, 12:10
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: RC Analog

We use the following lines to read an ultrasonic sensor...

uProximityRaw = Get_ADC_Result(RHS_PROXIMITY_LEFT);
uProximityMv = Convert_ADC_to_mV(uProximityRaw);

... and it absolutely works. So you must not have Kevin's ADC stuff set up correctly. If this does not compile, make sure that adc.c is in your project, follow the directions in adc.h for configuration and make sure to put the following line in all source files where you call Get_ADC_Result(x).

#include "adc.h"

HTH
 


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
aux analog guy_rom Technical Discussion 4 01-01-2008 23:54
Digital to OI Analog marcan Control System 33 05-02-2007 12:46
Analog Inputs bush Programming 5 13-03-2006 17:49
Analog in on OI: Heads Up! Astronouth7303 Programming 5 05-02-2004 17:55
Analog Inputs 316_programer Technical Discussion 2 05-02-2002 05:53


All times are GMT -5. The time now is 19:10.

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