Go to Post Find what your team is good at, and use it in any way you can. - karomata [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 18-02-2011, 15:19
KRibordy KRibordy is offline
Registered User
FRC #1000 (Cybearcats)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Valparaiso, IN
Posts: 36
KRibordy is an unknown quantity at this point
Target System (Console Out)

Hey guys,

We're trying to figure out why our robot won't drive. I realize that this could stem from a number of issues, but mainly I want to make sure the software isn't the issue.

Last year, we could connect to the cRIO via WindRiver and get a console output using printf and such. It seems that they changed a few things this year and I cannot figure out how to achieve the same result. I tried creating a new connection to the cRIO's IP, but WindRiver refuses to connect. Are there any parameters that I should be using?

To clarify, WindRiver downloads the code without any problems, the driver station can communicate with the robot and go into tele-op/autonomous mode, but that's as far as we get. No signs of life on the robot. We just imaged the cRIO to v28 and I just installed the latest WindRiver updates, so I'm pretty sure this is a minor thing that I'm overlooking.

Thanks in advance for any help!
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2011, 16:32
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Target System (Console Out)

Are you connecting via null modem serial cable? Or are you using NetConsole? If via serial cable, make sure it is a null modem cable, the console out switch is enabled and the communication protocol on the PC side is set to 9600,n,8,1.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2011, 16:40
Thomas DeSilva's Avatar
Thomas DeSilva Thomas DeSilva is offline
Programming Fury
FRC #1983 (Skunkworks)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Des Moines, WA
Posts: 18
Thomas DeSilva is on a distinguished road
Re: Target System (Console Out)

You should be able to open the console that your printfs display to with nothing but WindRiver and the correctly configured connection. To open the console window, you just need to right-click on your cRIO connection in WindRiver (the one you're running code on, you don't need a new one), then navigate to Target Tools > Target Console. This should display your printfs while your code is running. Is this what you've been trying? If this isn't working, is it giving errors?
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2011, 20:45
KRibordy KRibordy is offline
Registered User
FRC #1000 (Cybearcats)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Valparaiso, IN
Posts: 36
KRibordy is an unknown quantity at this point
Re: Target System (Console Out)

Last year we had a connection to the cRIO which we used to download code, view the console, and reset the robot. This year, with a new installation of WindRiver, it's apparently possible to download code without using a "connection." I haven't looked too hard for the documentation on how to make a new connection to the cRIO yet.

We're wirelessly connection to the D-Link adapter in access point mode. We managed to get the robot driving (it was a combination of bad PWMs and Victors, among other things), but it would still be nice for debugging purposes to have a console.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2011, 00:19
CodeMonkeyMatt CodeMonkeyMatt is offline
Registered User
FRC #2605
 
Join Date: Jan 2011
Rookie Year: 2008
Location: WA
Posts: 46
CodeMonkeyMatt is on a distinguished road
Re: Target System (Console Out)

You downloaded your code without setting up a connection to the cRIO in Windriver? I didn't think that was possible.
Reply With Quote
  #6   Spotlight this post!  
Unread 21-02-2011, 12:31
auk auk is offline
Registered User
FRC #1351
 
Join Date: Jan 2009
Location: Bay Area
Posts: 7
auk will become famous soon enough
Re: Target System (Console Out)

I can confirm that it is possible to download code without creating a vxWorks Target Connection in Windriver. We have been doing this routinely ever since we discovered it this year.
Reply With Quote
  #7   Spotlight this post!  
Unread 22-02-2011, 01:53
CodeMonkeyMatt CodeMonkeyMatt is offline
Registered User
FRC #2605
 
Join Date: Jan 2011
Rookie Year: 2008
Location: WA
Posts: 46
CodeMonkeyMatt is on a distinguished road
Re: Target System (Console Out)

Huh, that would have been nice to know. I guess it doesn't really matter, just a neat tip. Thanks.

To actually contribute to the thread, check out the C++ Getting Started Guide here: http://firstforge.wpi.edu/sf/docman/..._documentation

Hope it helps.
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


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

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