Go to Post Our opponents didn't know where our robot was going and neither did we! - ReapersRule [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 20-12-2008, 01:00
nickmagus's Avatar
nickmagus nickmagus is offline
Registered User
AKA: Nick Clayton
FRC #0008 (Paly Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Palo Alto, Califorinia
Posts: 56
nickmagus is an unknown quantity at this point
Send a message via AIM to nickmagus
PrintFs

Does anyone know how to get window to see the C++ printfs coming from the robot on your computer? I have been able to download and debug code successfully but I am still unable to get feedback on what the code is actually doing other than the actions of the robot.
  #2   Spotlight this post!  
Unread 20-12-2008, 01:53
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,814
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: PrintFs

Quote:
Originally Posted by nickmagus View Post
Does anyone know how to get window to see the C++ printfs coming from the robot on your computer? I have been able to download and debug code successfully but I am still unable to get feedback on what the code is actually doing other than the actions of the robot.
C++ printfs are known as couts. Try using a few of those.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #3   Spotlight this post!  
Unread 20-12-2008, 02:46
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: PrintFs

Quote:
Originally Posted by nickmagus View Post
Does anyone know how to get window to see the C++ printfs coming from the robot on your computer? I have been able to download and debug code successfully but I am still unable to get feedback on what the code is actually doing other than the actions of the robot.
You need to configure your cRio and PC as described in section 5.4.1 of the control system manual. If you're looking for another terminal client for Windows PuTTY is what I'm using.

Essentially you need to use the serial port on the cRio for that type of output.

However if you're using printfs as your primary means for debugging I suggest you look into using break points and the other debugging tools integrated with windriver.

Quote:
Originally Posted by EricH View Post
C++ printfs are known as couts. Try using a few of those.
printfs work as expected when you configure your system as I said above.
__________________
Eric Haskins KC9JVH
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

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


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

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