Camera Overlay icon Camera Overlay Displays trained object names as overlays on the Camera Device video stream using Camera Device's object-tracking (shows $CameraObjectName). Try it →
United Kingdom
Asked — Edited

Using Scripts

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


ARC Pro

Upgrade to ARC Pro

Unlock the true power of automation and robotics by becoming a proud subscriber of Synthiam ARC Pro.

#9  

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??

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#10  
  1. Launch ARC

  2. Select File

  3. Select Examples

  4. Select Robot - Wall-e Bit

  5. Smile