EDIT: Java port posted at post #8
yes, I have not had a chance to port the robot side code (ZDashboard.cpp) yet, but it uses WPILib (and therefore also works with WPILibJ).
(functions may be slightly different for java, I am not a java expert (yet))
Instead of making a ZDashboard object, make a Dashboard object from Driverstation.GetInstance().GetHighPriorityDashboa rdPacker()
then, at the beginning of your code, create a string, and (either immediatly or when the value has been calculated) then assign it a string in the format of
@@@451:|controlname=value|name=value|:451@@@
when you have built the string, use the dashboard object to Printf it
example:
Code:
string prints = "@@@451:|";
//code to calculate outputSpeed
prints+="out="+outputSpeed+"|";//name=value pipes (| above enter key on most keyboards, use shift) seperate values
yourDashboardObject.Printf(prints+":451@@@);//this fuction might be different for java
I will try to make a Java version of ZDashboard by this Friday. If you have any other questions, please ask