|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
printf statements do not display in autonomous mode
When I try to use a printf statement in the autonomous code, nothing displays on the console on the computer that is connected to the RC. I don't know why the printf statements don't work, but the autonomous code doesn't entirely work correctly either. Is it possible that the two problems are related? Even if they are unrelated, I need the printf statements to help me fix the problem.
Any insight into this problem would be appreciated. |
|
#2
|
|||||
|
|||||
|
Re: printf statements do not display in autonomous mode
Quote:
Well this might be obvious but have you #included printf_lib.h in user_routines_fast? and are you giving the commands in the while (autonomous_mode) (or whatever it is) loop? I'm not sure what else could be wrong.. sorry :/. |
|
#3
|
|||||
|
|||||
|
Re: printf statements do not display in autonomous mode
Make sure Initialize_Serial_Comms or Serial_Driver_Initialized is called before any printfs...
dunno if that's the error |
|
#4
|
|||||
|
|||||
|
Re: printf statements do not display in autonomous mode
If you are using the printf that came with the new compiler you will need:
Code:
#include <stdio.h> Last edited by Mark McLeod : 02-22-2005 at 03:48 PM. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a simple autonomous mode question | chippermonky | Programming | 3 | 02-18-2005 01:54 AM |
| A little question about the autonomous mode | Anton | Programming | 4 | 01-18-2005 02:08 PM |
| Future of Autonomous Mode | FadyS. | Programming | 41 | 05-24-2004 07:45 PM |
| autonomous mode problem on field | Chris_C | Programming | 17 | 03-26-2003 07:11 PM |