Go to Post Batteries don't help you if they're lying on the field. - Kevin Sevcik [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
  #1   Spotlight this post!  
Unread 23-01-2008, 20:25
sfs sfs is offline
Registered User
AKA: Steve Siirila
FRC #2220 (Blue Twilight)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Eagan, MN
Posts: 18
sfs is an unknown quantity at this point
printf or PrintToScreen?

So, what is the difference between printf and PrintToScreen when using WPILib? Both appear to work for us, provided we have only a main() function. However, as soon as we introduce IO_Initialization(), Initialize(), Autonomous(), and OperatorControl() functions, neither produces any output on the IFI Loader output screen. I have also heard of folks having to do a Wait(1000) prior to their first PrintToScreen call in these functions -- does that make any sense?

Our team used a modified version of the default FRC code last year, but it was recommended that we switch to WPILib this year due to all of the builtin sensor functions (many of which we did not use last year). We never ran into this problem in that environment, so I suspect a library issue. We are using the two libraries from the WPILib 2k6 directory, along with the two header files and linker script (5 files in total).

Last edited by sfs : 23-01-2008 at 20:27.
 


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
PrintToScreen() function prints out hex values? Nathan Programming 3 21-01-2008 03:39
printf mormannoob Programming 12 18-02-2007 17:51
Printf BillyJ Programming 9 21-01-2006 14:03
printf isn't printf-ing. Help! Meandmyself Programming 14 15-02-2004 16:27


All times are GMT -5. The time now is 23:19.

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