|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
printf & User_Autonomous_Code
printf()s that take place in user_autonomous_code are not showing up on my terminal emulator. I'm using the dipswitches to force it into autonomous mode.
The code compiles fine with no errors or warnings, and I'm including <stdio.h> What am I missing? |
|
#2
|
|||||
|
|||||
|
Re: printf & User_Autonomous_Code
Posting your code will help us help you. As it is, we have no idea where your printfs are in your code. If you're calling the printfs in the fast loop instead of the slow loop, then the serial port is getting swamped and isn't having a chance to output the strings.
|
|
#3
|
|||
|
|||
|
Re: printf & User_Autonomous_Code
Ah, sorry, I guess I wasn't clear enough.
I'm calling printf('hello world'); from user_routines_fast.c/User_Autonomous_Code in the 'slow' (26.2ms loop area) loop. |
|
#4
|
||||
|
||||
|
Re: printf & User_Autonomous_Code
Quote:
-Kevin |
|
#5
|
|||
|
|||
|
Re: printf & User_Autonomous_Code
Ah, my mistake, I am using double quotes. Astronouth just informed me that I need to include the newline or else it won't flush. I'll give that a shot tomorrow.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Printf | BillyJ | Programming | 9 | 21-01-2006 14:03 |
| pic: The Bobcats 2001 & 2003 & Admirers | CD47-Bot | Robot Showcase | 19 | 28-02-2004 12:36 |
| printf isn't printf-ing. Help! | Meandmyself | Programming | 14 | 15-02-2004 16:27 |
| User_Autonomous_Code() questions | sscanf | Programming | 8 | 07-02-2004 07:16 |