Go to Post Is any robot ever actually done? - BlondeNerd [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 01-08-2015, 10:29 PM
hibbsconnor hibbsconnor is offline
Programmer
AKA: Connor Hibbs
FRC #2826 (WAVE ROBOTICS)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Oshkosh
Posts: 4
hibbsconnor is an unknown quantity at this point
Dispslay cout in Eclipse

Does anyone know how we can see what should be displayed with cout? We used the vx Works target server last year, but it is not available Eclipse for the 2015 year. We are trying Riolog but nothing shows up. Any help displaying any feedback from the RoboRIO would be greatly appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 01-08-2015, 10:59 PM
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 587
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Dispslay cout in Eclipse

Make sure that the network, and the subnet masks in particular, are set correctly. If you can, use the radio configuration tool to set up the dlink access point, then set your laptop and the roboRIO to DHCP. You should make sure that the subnet mask on the network interface you are using to connect to the robot is 255.255.255.0.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #3   Spotlight this post!  
Unread 01-11-2015, 09:40 AM
dxc dxc is offline
Registered User
FRC #1551
 
Join Date: Jan 2013
Location: naples,ny
Posts: 5
dxc is an unknown quantity at this point
Re: Dispslay cout in Eclipse

we use printf and the output *does* show up in riolog. ordinarily std::cout and printf both write to stdout, but maybe this isn't the case here.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-12-2015, 09:48 PM
JohnM's Avatar
JohnM JohnM is offline
Registered User
FRC #5854 (Glitch)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2013
Location: North Carolina
Posts: 53
JohnM has a spectacular aura aboutJohnM has a spectacular aura about
Re: Dispslay cout in Eclipse

Our team just did this today using a console out. I used a std:: out << "Whatever" << std::endl. Also make sure your driver station is enabled.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-18-2015, 07:53 AM
mdrouillard mdrouillard is offline
Registered User
FRC #0772
 
Join Date: May 2011
Location: Canada
Posts: 29
mdrouillard is an unknown quantity at this point
Re: Dispslay cout in Eclipse

We are also having this problem. We will check out subnet masks and report back. But for us now in Java the use of println does not seem to print to rio log. We are using the dashboard for output right now which works well.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-19-2015, 12:51 PM
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 587
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Dispslay cout in Eclipse

There was a new update posted on Friday that fixes the buffering issue with RIOlog. It also fixes a number of other things and adds 2015 Vision examples for C++ and Java.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #7   Spotlight this post!  
Unread 01-19-2015, 10:38 PM
JefferMC JefferMC is offline
Registered User
AKA: Jeff Corbett
FRC #1319 (Flash)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2005
Location: United States
Posts: 44
JefferMC will become famous soon enough
Re: Dispslay cout in Eclipse

Quote:
Originally Posted by BradAMiller View Post
There was a new update posted on Friday that fixes the buffering issue with RIOlog. It also fixes a number of other things and adds 2015 Vision examples for C++ and Java.
I thought I saw a post stating there was an update, and there is a change log, but now I cannot find this update.

I'm hoping this update brings the C++ CANTalon up to parity with the Java library (I need to invert a slave CANTalon).

EDIT: Ah, the CPPandJava.ZIP file has been replaced with a new version (at http://first.wpi.edu/FRC/roborio/zipfile/). The instructions are the same.

Last edited by JefferMC : 01-19-2015 at 10:41 PM.
Reply With Quote
  #8   Spotlight this post!  
Unread 01-22-2015, 07:27 AM
mdrouillard mdrouillard is offline
Registered User
FRC #0772
 
Join Date: May 2011
Location: Canada
Posts: 29
mdrouillard is an unknown quantity at this point
Re: Dispslay cout in Eclipse

Quote:
Originally Posted by mdrouillard View Post
We are also having this problem. We will check out subnet masks and report back. But for us now in Java the use of println does not seem to print to rio log. We are using the dashboard for output right now which works well.
Thanks Brad. the one programming laptop indeed had the incorrect subnet mask. Riolog now working everyone.

so in summary, our radio is set as the DHCP server, with subnet 255.255.255.0 and both the rio, and connected pc/driverstation is now set to get ip address automatically via dhcp.

It works now.

Thanks.
Reply With Quote
  #9   Spotlight this post!  
Unread 01-23-2015, 10:40 PM
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Dispslay cout in Eclipse

Quote:
Originally Posted by JefferMC View Post
I thought I saw a post stating there was an update, and there is a change log, but now I cannot find this update.

I'm hoping this update brings the C++ CANTalon up to parity with the Java library (I need to invert a slave CANTalon).

EDIT: Ah, the CPPandJava.ZIP file has been replaced with a new version (at http://first.wpi.edu/FRC/roborio/zipfile/). The instructions are the same.
Checkout section 21.15 of Talon software reference manual
http://www.crosstheroadelectronics.c...ol_system.html
Reply With Quote
  #10   Spotlight this post!  
Unread 01-25-2015, 01:32 PM
JefferMC JefferMC is offline
Registered User
AKA: Jeff Corbett
FRC #1319 (Flash)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2005
Location: United States
Posts: 44
JefferMC will become famous soon enough
Re: Dispslay cout in Eclipse

Quote:
Originally Posted by ozrien View Post
Checkout section 21.15 of Talon software reference manual
http://www.crosstheroadelectronics.c...ol_system.html
Thank you for that. Yes, that addresses the issue.

But the Java libraries and the C++ libraries are supposed to be functionally equivalent, right? Why are they out of sync here?
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 09:12 AM.

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