
kamaroman68
In EZ builder there is a "pause" option box for the personality generator and speech recognition. I am wondering if a future update could include a "pause" option in the Movement Panel as well. What I am looking to do is when the robot boots up I would like the Movement Panel to be paused (init script). I would like it to remain in pause until voice command given "enable track motors" is given. If the robot is told to move in any direction while this is paused I would like it to report " my track motors are disabled". Thanks for any and all help!
Chris
Alternately, if you aren't already, you could use the custom Movement Panel which executes a script for each movement command. The first thing the script would do is check for a variable to see if movement is allowed and take the appropriate action accordingly.
Alan
Yes Roboclaw, and yes what you wrote is a possible work around. I was hoping to do it without "custom circuitry" although I do like the idea. I may need to design a pcb like Dave to add a couple tip circuits to my machine. Thanks for the idea.
Chris
Just check for a movement allowed variable to be set to true before each movement.
Let me know if you need an example and I'll write it up.
Alan
Code:
Then, in each direction of your movement panel, add the if statement form the code below, and put your actual movement command between the else and the endif. The print commands can be deleted, they were just there for testing.
Code:
Finally, add a speech command to change the variable. Example below changes it to true, but actually any value other than false will work.
Code:
I would not put the IF statement in the stop command of your movement panel, just in the 4 direction functions.
You could also have a voice command or other script other than init to set the value back to false and disable movement.
Alan
Alan
Chris