Log in

View Full Version : Dispslay cout in Eclipse


hibbsconnor
08-01-2015, 22:29
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
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
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
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
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
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
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
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
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.com/control_system.html

JefferMC
25-01-2015, 13:32
Checkout section 21.15 of Talon software reference manual
http://www.crosstheroadelectronics.com/control_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?