Quote:
Originally Posted by Jay_To_The_Be
I just don't know how to setup up the connection between the cRIO and Processing, and how to separate a comma-delimited string and make those values.
|
Quote:
Originally Posted by DomenicR
Mentioned within is Team 3574's 2012 code, which used a TCP to send vision data from the driver station laptop.
|
You can also check out the Network Tables code in the WPILib source code, which includes a TCP server. VxWorks looks like it basically uses the Berkeley/POSIX sockets API, so any resources on the Internet for Linux or Unix socket code should work as well. The code is a little extensive to replicate in-thread.
As for parsing delimited strings, here's some code for that separates numbers delimited by whitespace:
if you need comma to be delimiters as well, the code gets a bit more complicated:
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor