View Single Post
  #1   Spotlight this post!  
Unread 12-02-2004, 21:48
Meandmyself's Avatar
Meandmyself Meandmyself is offline
Registered Magic Programming User
AKA: Gordon
#1123 (AIM robotics Crimson Lightning)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: springfield, VA
Posts: 26
Meandmyself will become famous soon enough
printf isn't printf-ing. Help!

the wierdest thing is happening. When I do this;
Code:
  /*way up at the beginning of the file...*/
  char counter = 0;

  /*in process_data_from_master_uP*/
gyroin = get_analog_value(rc_ana_in_01);
if (counter > 40) {
     printf("%d, %d \n",gyroin,get_analog_value(rc_ana_in_01));
     counter=0;
}

counter++;
printf prints out nothing. But this:

Code:
printf("%d, %d \n",gyroin,get_analog_value(rc_ana_in_01));
works fine. What's going on here?

BTW, this is all happening in the context of a larger problem that is I can't get the Gyro from last year to send values to the Edubot. When it does print, it says 0,0 no matter what.

It also has never printed the initialization message in user_initialization(). What's up with that?
__________________
They call me the Idea man.
Not because my ideas work,
But because I have ideas...


I'm not a programmer. I'm an electrical guy who can program. If only I understood C!

www.aim-robotics.org //team website
www.tjhsst.edu/~gburgett //cool stuff for school

Last edited by Meandmyself : 12-02-2004 at 22:08.