
iskandershah
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)
Or don't you have a movement panel?
I have forward script and stop script
In Movement Panel script, I use command
ControlCommand("forward",startScript)
And
ControlCommand("stop",startScript)
I am using Logitech rumble pad. When I shift my left analog stick up , the forward script is started
When I release it the stop script is started. However, the forward script won't stop.
I need the forward script to stop. Any idea?
My bot moves in a gait sequence.
Currently my stop script which actually level all 4 legs to the center (servo pos 50)
I will try and follow Louis T suggestion. i am currently at work.
Seriously, very impressed!!
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?
*confused*
Carbio says hi!
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.