
Ellis
I am a novice code writer but am learning. I have two questions I need help with.
1. I am writing script for my DIY robot Max. I have script that includes an AutoPosition event. The question is how to I keep from all the script running at the same time. In my script I want a line of code to finish before the next line of code starts. I have looked and failed to find the answer on my own.
2. My second question is opposite the first. Since AutoPosition doesn't allow for control of modified servos I am writing script that I want to run at the same time the AutoPosition script is running.
It seems that my problem really comes down to controlling the order script runs.
I will say that EZ-Robot has the most quality information I have ever seen in helping people to solve their own problems. It is just that I have trouble finding where that information is.
Any help would be greatly appreciated.
*confused*
post your script.
2) the Auto Position does indeed support continuous rotation servos, because they are still servos. If calibrated correctly, 90 degrees on a continuous rotation servo is STOP, and further away from 90 in either direction will change the speed of that direction. More information here: http://www.ez-robot.com/Tutorials/Lesson/48?courseId=6#part5
Also calibration of continuous rotation is here: http://www.ez-robot.com/Tutorials/UserTutorials/190/1
You don't see those interfaces because your ARC is Version: 2017.01.10.01. Please consider upgrading ARC, it's free.
Here is my code. When I run it the voice starts and the Auto Position starts and runs at the same time. I want the voice to start and end and then want the Auto Position script to run. I have been using RoboScratch then copying and pasting the code into a script box. Then I modify it to do what I want. It is faster.
Also I have at the end of the code I had to write Both Arms Park code twice to get max to complete the park function.
Code:
Here is the activity guide, which will help you with information on using RoboScratch or Blockly: http://www.ez-robot.com/Tutorials/Course/6
This example would be extremely easy and best to use RoboScratch or Blockly - both generate code for you.
*Note: assuming "Both Arms Park" is not set to repeat, here's your code re-written:
Code:
*Note: assuming "Both Arms Park" is set for repeat, here's your code re-written:
Code: