Actually have to two issues. The first is pretty much described in the question. I created a button that writes text to the screen using text("" + q[3]*rad2deg, 280, 360) in the button function as follows:
public void controlEvent(ControlEvent theEvent) {
//println(theEvent.getController().getName());
}
public void Button1() {
println("a button event from colorB: ");
fill(255,0,0);
textSize(12);
text("" + q[0]*rad2deg, 170, 360);
text("" + q[1]*rad2deg, 170, 380);
text("" + q[2]*rad2deg, 170, 400);
text("" + q[3]*rad2deg, 280, 360);
text("" + q[4]*rad2deg, 280, 380);
text("" + q[5]*rad2deg, 280, 40);
}
On release of the button the values flashes on the screen and then disappears. Not sure how to fix this issue. I did a web search but nothing. I am using processing 3 with the latest library. I have attached a screen shot of the GUI for reference. The offending fields are t0 through t6. Ultimate intent to have these update as the calculations for robot arm position is calculated. Also tried to this with a ControlP5 textfield and textarea but they don't update until after the last iteration is completed and only shows the last iteration.
Heres the actual link: https://drive.google.com/file/d/0BwzZjH9KYYMDcXBHWkdrdU1yZEk/view?usp=sharing
v/R Mike