Go to Post Baker, you certainly are a trouble maker. :) - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2010, 19:36
John Young John Young is offline
Registered User
FRC #1466
 
Join Date: Jan 2010
Location: Webb Robotics
Posts: 3
John Young is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2010, 20:47
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: printf not working and UserProgram_StartupLibraryInit task deleted

Out of curiosity, does your printf occur before or after your motor runs?
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2010, 19:26
John Young John Young is offline
Registered User
FRC #1466
 
Join Date: Jan 2010
Location: Webb Robotics
Posts: 3
John Young is an unknown quantity at this point
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).
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2010, 19:41
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2010, 21:36
John Young John Young is offline
Registered User
FRC #1466
 
Join Date: Jan 2010
Location: Webb Robotics
Posts: 3
John Young is an unknown quantity at this point
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.
Reply With Quote
Reply


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


All times are GMT -5. The time now is 13:45.

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