Watson Text To Speech icon Watson Text To Speech — Human-like audio via IBM Watson Text-to-Speech: multi-language, selectable voices for accessibility and automated interactions. IBM Cloud required. Try it →
Singapore
Asked — Edited
Forward And Stop Command In Joystick

Forward And Stop Command In Joystick

Hi everyone I am trying to create a Quadruped.

i have created a forward movement script and the ControlCommand scripts for "Forward" and "stop"

now, when i use the jobsticks, The forward script will not stop playing

does anyone know how do i make it such a way that when i release the d pad in the joystick, it will deactivate the "forward" script?

my code as follows:

ServoSpeed(D15,2) ServoSpeed(D16,2) ServoSpeed(D18,2) ServoSpeed(D19,2) :forward Servo(D15,40) Servo(D18,40) Servo(D16,60) Servo(D19,60) Sleep(800) Servo(D15,60) Servo(D18,60) Servo(D16,40) Servo(D19,40) Sleep(800) Goto(foward)


ARC Pro

Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

Author Avatar
United Kingdom
#9  

Well done you Awesome can't wait for more vids of you progress

#10  

More videos.

Apparently he is now able to walk, reverse and turn

His remote control still does not all to stop the scripts from running.

Any idea of how to resolve this?

User-inserted image

User-inserted image

confused

#12  

Solved

I just need to add

ControlCommand ("forward", scriptStop)

In the first line of stop script.

This applies to all

Now. My bot is fully controllable with my Logitech rumble pad 2:)

I am so happy with Carbio's progress:).

I will sure post more pictures and videos.