Asked — Edited

Line Following Script

Hi All, I have 4 Parallax QTI sensors installed and hooked up and I am getting info from them. Now how do I write a script for movement? I found lots of info about scripting but not how to actually do it. Thank you for your help. Shawn


ARC Pro

Upgrade to ARC Pro

With Synthiam ARC Pro, you're not just programming a robot; you're shaping the future of automation, one innovative idea at a time.

#1  

add controls ez script

:edge if(adc, a1, > 100) or the wait command,test them out. see what works. stop() servo(d5, 30)

goto(backup) goto(edge)

:backup right(400) forward (500) servo(d10, 50)

goto(edge) goto(backup)

something like that will keep the sensor always looking for the line......once it finds it it will execute script.

then go back to waiting to see the line again...i use this type of scrip for PIR sensors(ppassive infrared sensors)

i found that using the "if" and "wait" commands are really useful let me know if i mis understood your question

#2  

Thanks Hoolagen1, I will give it a try. When you are in the E-Z B script part of the program do you type in the commands?cut and paste? I can get the lines to highlight, I thought there was some kinda point and click. S

#3  

i think voice controls can cut and paste and maybe personality gen. but not ez script, for some reason.