As you can see, there are 4 numbers. These numbers represent the Left Hip, then the Left Ankle,
Right Hip, and then Right Ankle all in that order. If we wanted Owen to twist his ankles we would
change the 0 values in these positions: [* 0 * 0]. If we wanted him to move his hips we would
change the 0 values in these positions: [0 * 0 *].
Lets look at another movement. 2-
HokeyPokey. This movement is made up
of 2 different moves, 1-HokeyPokey-Left
and 1-HokeyPokey-Right.
This mean that 2-HokeyPokey is running
the left side then the right. Other command
definitions can be specified by using the %
sign in front of the command name.
If you want to use another movement in your program use the % first, then spell out (case sensitive)
the other program name.
1-HokeyPokey-Left is made up of several
things.
%TipOnFoot2-Left
%WiggleFoot-Right
%WiggleFoot-Right
%0-Reset
Here looking at TipOnFoot-Left we can see the raw
servo positions that should be sent to the servos.
This also goes for WiggleFoot-Right.
Guide for calling a command.
4 numbers with spaces in between brackets is to change
the servo position. [0 0 0 0]
A star * in the brackets means to leave the previous number alone and not to change the position.
[100 * -500 *]
A % is used to call other commands, like %0-Reset
Speed is used to change how fast the servos change position. Example:
speed 10
speed default
wait is used to delay before executing the next command. This is very useful because if the robot
gets commands too fast, it may skip some to try to catch up. So slow down your command spacing
if necessary. Small delays like wait .8 are a good place to start if your motion starts jumping code.
Now try it yourself!