Greetings,
I have 4 arrays that I will read to control an autonomous robot vehicle as instructions.
I need to be able to read the first elements in each array and store in 4 separate variables (direction, speed, angle, distance). Then wait until that first instruction has been executed. Then I move on to the second elements in each array. I will repeat this until I have gone through all the elements. I am struggling to figure out how to do this?
Please note:
-The number of elements in the arrays are always the same, although the number of elements vary because the can be less instructions or more.
For example a complete instruction takes 1st element from array 1, array 2, array 3 and array 4 and this builds up something like: Forward, 10, 20, Left. This then will result in the robot moving Forward at a speed of 10 for a distance of 20 and then make a left turn. Once thats done then it takes the 2nd elements and so on.
Please find attached my VI that reads a text file and creates the 4 arrays.
Thank you.