Go to Post Defense is a good thing! - Kevin Sheridan [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
  #3   Spotlight this post!  
Unread 17-02-2006, 23:55
Idaman323 Idaman323 is offline
In Theory, Our Robot Would Own.
FRC #1706
Team Role: Driver
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Wentzville, MO
Posts: 116
Idaman323 is an unknown quantity at this point
Re: Pot Printf Variable

So pretty much I can do

unsigned int sensor1;

sensor1 = Get_Analog_Value( rc_ana_in01 ); /* Assign the analog reading to a variable. */

then in proccess_data_from_master_up we put the

printf("Pot value: %d\r,(int)sensor1);


would that work, and would the top part go into adc.h or adc.c?
__________________
TEAM 1706
2007 Judges Award, St. Louis (For our amazing ability to have bad luck)
2005 Rookie Inspiration Award, St. Louis
 


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
printf could not find definition Alex829 Programming 7 27-06-2005 10:04
Printf Oddity : Programming Challange DarkAlex Programming 7 21-03-2005 08:12
printf statements do not display in autonomous mode PVC Pirates Programming 3 22-02-2005 15:41
Anyone with a replacement Printf? Larry Barello Programming 5 19-03-2004 02:20


All times are GMT -5. The time now is 02:11.

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