We are about to switch to a new forum software. Until then we have removed the registration on this forum.
As part of my mind controlled robot project (making a rover move with my thoughts from a neuro headset), the rover has sensors on board that I want to relay the information back to the processing sketch controlling the rover, and have visual representations of the information they are providing.
Now I know how to serially send basic info - an integer - over and read it into processing. But I don't know how to get multiple values going through the one serial line. I know I will need to use strings. And put the values into a strings, then in processing separate the different values. That is what I don't know how to do. Will I need to attach something to the value, so then when I look for it I look for that, then break it up? And what syntax is used to find parts of strings, and break up the strings.
I am very lost here and would greatly appreciate anybody explaining how it works, or pointing me in the right direction. Thank you.
Answers
I found splitTokens() in refference, which I can then use to split the numbers into an array... I play around with that a bit and see how it goes :S
Take a read at my answer post below:
http://forum.processing.org/two/discussion/3999/change-camera-capture-resolution-according-to-webcam-resolutionframe-rate
Thanks Loop. I`ll look into it more later.