Germany
Asked — Edited

Check The Arms Like An Excavator

If I control the arms with the Servopad, everything is too rude for me. Has anyone ever driven an excavator?

If you move the joystick slightly in one direction, The arm moves continuously slowly in the direction. If you move the joystick strongly in one direction, The arm moves continuously rapidly in one direction.

For my robot I would like something similar. I would like a Servopad which when in use The arm continuously moves.

I can not find the function anywhere in the EZ software. Thank you.


ARC Pro

Upgrade to ARC Pro

Join the ARC Pro community and gain access to a wealth of resources and support, ensuring your robot's success.

#10  

If you look at the Emergency Stop script in the MyRoli-MKII project, you will see what I was talking about using a ControlCommand to stop all scripts from the script managers and autopositions (if you have individual script objects instead of script manager, you can use ScriptStop on each script instead of ScriptStopAll on the script manager), then I stop the movement panel, disable all digital ports and finally release all servos.

DJ's method is also effective, and it can be global (ie, use the same variable, maybe call it "$moving" instead of "$movingdown", so it is really a matter of style, but my method keeps the actual movement scripts simpler but the emergency stop script more complex.

Alan

Germany
#11  

I havent see your script some days. Now i have found this.

Wow. Its the overkill Panicbutton. Thats really cool. This stop all.

I see, with this project i can learn a long time. Thank you for your help.

#12  

Thanks. That project is a test bed for a much larger robot I will eventually be making, so there is a lot of experimental stuff in it, and I change it around pretty regularly, but the stuff that works well will always be in the current version.

Alan

Germany
#13  

Hi, i need your help again. Iam using my robot mostly with computer but now i test the App. I have create all scripts and icons for the app and i have tested all with my computer. all works fine.

When i start the app with my handy, my scripts in the menu "Steuerung" does not work. I become the working icon, but my robot does not make the order.

This is the script on my Button.

ControlCommand("Script Manager Steuerung", ScriptStart, "* T")

sleep(100)

ControlCommand("Script Manager Steuerung", ScriptStop, "* T")

And this is the Script "* T". This is started and stoped from the button.

# set a variable that we are moving
$movingDown = 1

repeatwhile(GetServo(13) < 175)

  # Move the servo 2 degrees from current position
  ServoUp(D13, 1)

  # Pause for a brief time while servo moves
  Sleep(15)

  # Exit if another script told us to stop moving
  if ($MovingDown = 0)
    halt()
  endif

endrepeatwhile
Germany
#14  

Hehe, no answer. I have forgotten the half world is sleeping ;-)

I have found my error self.