|
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.
|