I'm having troubls starting a AP action from a script located on a different AP frame while it's running from within the same AutoPosition control. Is this even possable?
To be clear, here's an example: Lets say I only have one AP control installed. I have two actions I've made in this AP control. Action "one" has a script attached to one of it's frames commanding Action "two" to start. Can this be done? I've tried and I can't seem to get action two to start. If it is possable maybe I'm doing somthing wrong.
Asked
— Edited
Why would you not combine the frames of two actions into one single action?
Anyway, to tell you the truth, I'm still trying to find the best way to move my robot's arms out of the torso without them moving around on the way out and destroying themselves. It's a complicated hot mess. On each arm I have:
*One DC motor moving the arm carriage out of the torso (controlled through the Uart)
* One DC motor moving the elbow joint. (controlled through the Uart)
*One additional opto switch that triggers when the DC elbow motor is centered.
*Three other servos - Wrist up and down, Wrist right and left, claws.
Only when the arm is fully out of the torso can it begin to move by using actions I made in the AP control.
I have to have the elbow DC motor and both of the wrist servos energized and holding on center before the carriage DC motor takes the arm out of the robot's torso. I'm trying to get as much of this action handled by one AP control as I can. It's proving to be quite an involved job just working through the logic of the scripting behind this and where to place the scripts. I'm ending having to script a lot of this outside of the AP control and calling the actions. I'm using Wait() commands that are watching for variables set when scripts complete.
I did however find a way to call a second action from a first action of the same AP control. I have a script attached to a running frame in action "one" that starts a EZ Script that is outside of this AP control. That EZ Script then starts Action "two" in the AP control. Kinda redundant and messy but it works. *sick* Again, It's a work in progress and I'm trying to learn the best way to make all this work.
Thanks again for the help.
Code:
I'm on my phone but I'll whip something up using mobile
Which generates this code
Does It work the other way also? Can ARC take an ez script and convert it into a Blocky layout?