Thread: CPP to Java
View Single Post
  #3   Spotlight this post!  
Unread 08-02-2014, 11:09
calcmogul's Avatar
calcmogul calcmogul is offline
WPILib Developer
AKA: Tyler Veness
FRC #3512 (Spartatroniks)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Santa Maria, CA
Posts: 52
calcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nice
Re: CPP to Java

The chunk of data which is the boolean doesn't have to be converted to a "Java program". For sending some data from the Driver Station to the robot, one could use sockets.

Basically, one opens a UDP socket on the Driver Station side and sends the data through. The robot side should have a UDP socket open and bound to some port like 1130 to which the Driver Station app is sending. I would recommend sending a character for something like that rather than a boolean since there isn't a defined format for booleans.