
pacomms
Hi guys, so i have a quick question regarding scripting, basically im trying to make some kind of maping code with ARC, for some reason the sonar scan module doesnt work to well with my robot but thats another story, what i wanna know is
1 - can i jump to another script from within a running script and then back again , ie if i made a simple script for forward motion i could include some kind of sub script to check the ping sensor and if nothing is within range jump back to the origional script and carry on ?
2 - from within a subscript can i use ie, if(D1 < 10 goto (another script) )
3 - can i save a value somewhere or somehow , ie move sonar servo left, save value then move right and save value then figure out which way is best ?
I know its basically what the sonar sweep does but like i said that doesnt work to well on my omnibot, he senses something then just spins around in a circle, also i would rather do it with scripts so i can add in other variables and sounds etc etc.
Hope that makes sense
Thanks Kurt
DJ, I went to down load the "If you reference my wall-e big example" and it does not appear to be there any longer. Where have you hidden it??
Launch ARC
Select File
Select Examples
Select Robot - Wall-e Bit
Smile
Thanks!
you mean wall-e big?