Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Dispslay cout in Eclipse (http://www.chiefdelphi.com/forums/showthread.php?t=132449)

hibbsconnor 08-01-2015 22:29

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!

BradAMiller 08-01-2015 22:59

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.

dxc 11-01-2015 09:40

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.

JohnM 12-01-2015 21:48

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.

mdrouillard 18-01-2015 07:53

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.

BradAMiller 19-01-2015 12:51

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.

JefferMC 19-01-2015 22:38

Re: Dispslay cout in Eclipse
 
Quote:

Originally Posted by BradAMiller (Post 1430529)
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.

mdrouillard 22-01-2015 07:27

Re: Dispslay cout in Eclipse
 
Quote:

Originally Posted by mdrouillard (Post 1430044)
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.

ozrien 23-01-2015 22:40

Re: Dispslay cout in Eclipse
 
Quote:

Originally Posted by JefferMC (Post 1430826)
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

JefferMC 25-01-2015 13:32

Re: Dispslay cout in Eclipse
 
Quote:

Originally Posted by ozrien (Post 1433093)
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?


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi