|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
printf not working and UserProgram_StartupLibraryInit task deleted
printf messages are not being sent to the console from the robot code, but are sent from WPILIB. We were able to build the WPILIB source code and add a printf statement for "printf works in WPILIB", but the printf statement from the Autonomous code does not show in the cosole even though the autonomous code is running (motor runs for 2 seconds). The console output is shown below. We believe the problem is related to the tFRC_UserProgram_StartupLibraryInit task being deleted.
WPILib was compiled from a location that is not source controlled. printf works in WPILIB task 0x1e01338 (tFRC_UserProgram_StartupLibraryInit) deleted: errno=196709 (0x30065) status=0 (0) Has anyone else had this problem or know how to find out about errno 196709? |
|
#2
|
|||
|
|||
|
Re: printf not working and UserProgram_StartupLibraryInit task deleted
Out of curiosity, does your printf occur before or after your motor runs?
|
|
#3
|
|||
|
|||
|
Re: printf not working and UserProgram_StartupLibraryInit task deleted
The printf that works is part of the WPILIB initialization that runs during the Robot base class constructor (before the motor runs).
|
|
#4
|
|||
|
|||
|
Re: printf not working and UserProgram_StartupLibraryInit task deleted
I meant the bad one. If it runs after your motor runs there is a chance it is crashing the robot code
Also, try the printf from a C++ program. I think that error can only be thrown in a C mode robot. |
|
#5
|
|||
|
|||
|
Re: printf not working and UserProgram_StartupLibraryInit task deleted
The printf is the first statement in the routine and the autonomous code runs all the way through (i.e. the motor runs for two seconds and then turns off). We verified that the code is being compiled and loaded by changing the run time to five seconds and everything appears to work except for the printf and the "task 0x1e01338 (tFRC_UserProgram_StartupLibraryInit) deleted: errno=196709 (0x30065) status=0 (0)" message in the console window.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Robot not doing what we need it to, and printfs aren't working | Bryan Herbst | Programming | 8 | 21-09-2008 20:58 |
| printf causes programs to not run | jasonpeinko | Programming | 6 | 17-01-2008 18:54 |
| my comp is not working right and i need help | Timmyd | Chit-Chat | 17 | 07-11-2005 23:39 |
| INT2 and INT3 interrupts not working | Mercutio | Programming | 4 | 01-02-2004 13:27 |