Go to Post I respect each member of any FIRST team that is truly trying to help students…how they choose to do so is up to them. - Jason Kixmiller [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-01-2009, 15:51
bobbyt14 bobbyt14 is offline
Registered User
FRC #0744
 
Join Date: Feb 2007
Location: Fort Lauderdale
Posts: 13
bobbyt14 is an unknown quantity at this point
dprintf

so the vision docs say that dprintf is supposed to print to a file in the root directory of the robot when SetDebugFlag() is set correctly. When I run programs initialized in this way, no file exists when I ftp the root file directory.

I'm wondering if there's some additional function i need to flush the file or some other way of running the robot (rather than download the code and reset the robot in windriver).

thanks
  #2   Spotlight this post!  
Unread 15-01-2009, 13:24
foemill's Avatar
foemill foemill is offline
What do you mean it's overweight?
AKA: Eric Miller
FRC #1270 (Red Dragons)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2007
Location: Cleveland, Ohio
Posts: 12
foemill is on a distinguished road
Re: dprintf

Here's a blurb from the FRC_Visio_API docs:

SetDebugFlag
Sets the debug flag to write to a file or console output. The debug files are written to the root directory
and are called “filename.debug” where filename = name of the calling routine.
The files may be ftp’d to
the PC for inspection. Be careful to remove these periodically so that they do not get too large and fill up
the disk. It is recommended to use file debug levels only during active debugging, and turn off debug (or
screen only) most of the time.

void SetDebugFlag ( FrcvDebugOutputType flag )

Parameters:
flag – Debug output type. This can be:

DEBUG_OFF, // no debug
DEBUG_MOSTLY_OFF, // only critical/fatal errors logged
DEBUG_SCREEN_ONLY, // no file, only console
DEBUG_FILE_ONLY, or // no console, only file
DEBUG_SCREEN_AND_FILE. // both console & file


Are you setting "funcName" to some string value in your function?

EX:
char funcName[] = “someFunctionName”;
dprintf(LOG_DEBUG, "Test from %s", funcName );



Quote:
Originally Posted by bobbyt14 View Post
so the vision docs say that dprintf is supposed to print to a file in the root directory of the robot when SetDebugFlag() is set correctly. When I run programs initialized in this way, no file exists when I ftp the root file directory.

I'm wondering if there's some additional function i need to flush the file or some other way of running the robot (rather than download the code and reset the robot in windriver).

thanks
Closed Thread


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


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

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