Posted 18 July 2014 - 05:50 AM
I know that this is somewhat basic but I can not remember what kind of loop it is or how to set it up. The point of the loop would be to do the loop and if a condition is met skip the rest and jump back to the top. Here so sudo code.
so something like
So in this case if "X" became true do step 1 and 2 and go back to the top else do step 3. The point of this is something to do with gps.locate() if It runs into an obstacle it would do step 1 and 2 then go back to the top to check its position else if it didn't run into an obstacle just keep going
so something like
while true do
if X == true then
doStep1()
doStep2()
end
doStep3()
end
So in this case if "X" became true do step 1 and 2 and go back to the top else do step 3. The point of this is something to do with gps.locate() if It runs into an obstacle it would do step 1 and 2 then go back to the top to check its position else if it didn't run into an obstacle just keep going