
leonardo46
Italy
Asked
— Edited

Is it possible to have moviment panel working with its actions, but having at the same time the possibility to control motors with hbridge and Arrow Keys and even keyboard commands ? It seems not possible. Everyone disables the other.
@Leonardo,
Can you explain why does not work ? Please describe the controls you use.
I have a robot with arms and wheels.There is an AutoPosition panel. I click "execute" and the arms perform an action composed by some frames. During this performance , I'd want to move the robot by a hbridge pwm movement control panel driving the wheel, using the arrow keys option that's in that panel. I added this control in my project, I also would like to send other commands using the PC keyboard, by the "keyboard control". But the three control panels don't work at the same time. While the main control panel operates the arms, or ends its performance, the other functions are disabled. How can I get these three control functions working at the same time , without having to enable/disable each one by clicking on them with the mouse ?
@leonardo46 Just write a script to do what you want....
Arrow keys will still control a Movement Panel when the key control object is selected. I have not had any issues using a keyboard contril while AutoPosition was already running. I set up keys in my keyboard control to execute autopositions with control commands so I never need to deselect the keyboard control once selected.
Alan
When I start the Auto Position action by clicking " execute" in the auto movenment panel ,at the same time , the keyboard control shows "click here to activate". I must click there to activate the keyboard control, otherwise i can't have keyboard control. And while the action is running, I actually have arrow keys working, but when the action ends , the arrow keys don't work any more, and then I have to "click to use arrow keys " again , otherwise I can't have arrow keys working any more.
What I said was instead of clicking in the AutoPosition ti execute it, set a key to execute your autopositions via ControlCommand script statements. Then your mouse never loses focus on the key control.
See my public ez-b project "myroli-mkii" for examples.
Alan
OK. What script statement should I use to start executing an action called for example " move arms" in my AutoPosition panel ?
Assuming your AutoPosition control has the default name of "Auto Position"
You can always use the script Cheat Sheet function to find valid script commands. Right click in the script edit window, select the object you want to send a command to, and there will be a dropdown of all available commands for that object (mostly control commands).
There are numerous examples of executing autopostion actions, frame jumps, and executing other scripts in the key command object of my public "myroli-mkii" project on the EZ-cloud.
Alan