View Single Post
  #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