I am doing a Java API to connect to BAP with my pc using a bluetooth antenna. I have all the Java part done and I have tested it properly. So far I am able to send integers and strings to the robot. Floats are a bit harder. However I am a bit stuck with the basic micro code.
So far I send a number to the robot and plot it using the next fully-working code:
number var word
serin pc_in, pc_braud, [number]
serout s_out, i9600, [dec number,13]
The number has to be received with any modifier, otherwise java is not able to send it correctly. The problem comes up when I use a for... next and it never stops. Eventually, I am into an infinite loop. How can I get the decimal value of the number and stop the loop for?
index var word
for index = 0 to number
PS: As soon as i finish with the communication protocol I will update the API into the forum