Asked
— Edited
i cant seems to ad a movement to script movement panel?
Forward( 255,5000 )
sleep(1000)
ControlCommand("Auto Position", AutoPositionAction, "Armwalk")
anyone thank you
i cant seems to ad a movement to script movement panel?
Forward( 255,5000 )
sleep(1000)
ControlCommand("Auto Position", AutoPositionAction, "Armwalk")
anyone thank you
You can have a "Movement Panel" and then "Auto Position" panels OR
you can have an "Auto Position Movement Panel" which does both together - which I think is what most folks use and what most examples show.
If you are using the "Auto Position Movement Panel" then you need to use:
Code:
Let us know what you are using and which robot. And remember you can check the "Cheat Sheet" under the EZ-Script control to see what commands are available to you.
i am using a seperate movement.
only in the speech recog are controls .forwart/backwart/left&right.
What if you change your script to this to make this work for now so you are doing one thing at a time (get the forward actions working, then add the other action):
Code:
If you run that you should see the forward green arrow on the Movement Panel light up and robot move forward. If it does not, my guess would be the value "255" is maybe too high for the way your robot is configured. If that is case try dropping the value down until it moves forward. LIke try "250, then 245, 240...you get the idea.
yes .i made two motion.i wanted to ad when the robot go's forwart and stop.
justin
i have that ,and it works.but not the motions i made.only forwart works.
https://www.ez-robot.com/Tutorials/Help.aspx?id=47
and add the code that will run when the Forward() is called. i.e.
Code:
You can also have the code tell the AutoPosition to stop with the Stop motion
Why does your code tell it to right or reverse in the right or reverse? You're telling the command to do the command when it does the command to do the command that does the command in the command when the command runs the command to do the command from the command with the command.... for ever
My instructions did not instruct you to enter the movement into the movement of the movement. You've created an infinite loop. Careful, the universe is a fragile place
Read the manual for the control before using it. Here is a copy from the manual from the link i provided in my previous post.
i dont have action forwart/backwart/left&right in the auto position.
the action turn head left&right is repeat also the action move arms is repeat.
so ok something is not right in the movement.thats why the wheels didn turn of *eek*.
infinite means forever? says buzz lightyear.
2) Edit the FORWARD script in the MOVEMENT SCRIPT to the following...
Code:
3) Edit the STOP script in the MOVEMENT SCRIPT to the following...
Code:
that's it. Do not add code anywhere else. Remove the RIGHT() and LEFT() and all other code you've had.
dj&justin
And before now, I didn't know MOVEMENT SCRIPT worked that way.
set it for.
i try pwm(D0,90) but it dont work?
the bar in the H-bridge dont move
You cannot use pwm() and expect the speed to change. You set the speed and the pwm will change. The speed controls the pwm or what ever kind of speed the Movement Panel uses.
Use the speed() and let the Movement Panel do its own thing. Don’t override it
sorry i dont understand coding.do you have an excample?