by serithseraki » Wed Oct 19, 2011 7:44 pm
by serithseraki
Wed Oct 19, 2011 7:44 pm
Sorry for the confusion, and the length of the code. I originally tried to post the full startup portion with the walking motions to make it understandable but I suppose the post was too long and was shorted when posting it. Furthermore, I have no idea how IF buffer <70> 70 THEN GOTO stand_straight was posted like that. The code for the walking motions should be as written below.
'===============================================
forward_walk:
'stand straight, arms out
MOVE24 100,76,145,94,100, ,100,40,80, , , ,100,40,80, , , ,100,76,145,94,100, ,
SPEED 2
'shift weight right
MOVE24 82,76,145,94,114, ,100,40,80, , , ,100,40,80, , , ,112,76,145,94,90, ,
SPEED 5
'lift left leg
MOVE24 90,60,156,99,114, ,90,40,80, , , ,100,40,80, , , ,114,76,145,94,94, ,
SPEED 7
'bring left leg forward
MOVE24 90,63,156,96,114, ,80,40,80, , , ,105,40,80, , , ,114,98,117,99,94, ,
SPEED 2
RETURN
'===============================================
right_and_left_step:
'center body
MOVE24 100,63,156,96,100, ,90,40,80, , , ,105,40,80, , , ,100,100,117,99,100, ,
'shift weight left
MOVE24 112,76,145,96,90, ,100,40,80, , , ,105,40,80, , , ,82,100,117,99,114, ,
SPEED 5
'lift right leg
MOVE24 114,76,145,94,94, ,100,40,80, , , ,90,40,80, , , ,90,60,156,99,114, ,
SPEED 7
'bring right leg forward
MOVE24 114,98,117,99,94, ,105,40,80, , , ,80,40,80, , , ,90,63,156,96,114, ,
SPEED 2
'center body
MOVE24 100,100,117,99,100, ,105,40,80, , , ,90,40,80, , , ,100,63,156,96,100, ,
'shift weight right
MOVE24 82,100,117,99,114, ,105,40,80, , , ,100,40,80, , , ,112,76,145,96,90, ,
SPEED 5
'lift left leg
MOVE24 90,60,156,99,114, ,90,40,80, , , ,100,40,80, , , ,114,76,145,94,94, ,
SPEED 7
'bring left leg forward
MOVE24 90,63,156,96,114, ,80,40,80, , , ,105,40,80, , , ,114,98,117,99,94, ,
SPEED 2
'center body
MOVE24 100,63,156,96,100, ,90,40,80, , , ,105,40,80, , , ,100,100,117,99,100, ,
IF buffer > 70 THEN GOTO stand_straight
IF buffer < 70 THEN GOTO right_and_left_step
'===============================================
stand_straight:
'shift weight left
MOVE24 112,76,145,96,90, ,100,40,80, , , ,105,40,80, , , ,82,100,117,99,114, ,
SPEED 5
'straighten right leg
MOVE24 112,76,145,96,94, ,100,40,80, , , ,100,40,80, , , ,88,77,140,96,114, ,
SPEED 2
'stand straight, arms out
MOVE24 100,76,145,94,100, ,100,40,80, , , ,100,40,80, , , ,100,76,145,94,100, ,
RETURN
Sorry for the confusion, and the length of the code. I originally tried to post the full startup portion with the walking motions to make it understandable but I suppose the post was too long and was shorted when posting it. Furthermore, I have no idea how IF buffer <70> 70 THEN GOTO stand_straight was posted like that. The code for the walking motions should be as written below.
'===============================================
forward_walk:
'stand straight, arms out
MOVE24 100,76,145,94,100, ,100,40,80, , , ,100,40,80, , , ,100,76,145,94,100, ,
SPEED 2
'shift weight right
MOVE24 82,76,145,94,114, ,100,40,80, , , ,100,40,80, , , ,112,76,145,94,90, ,
SPEED 5
'lift left leg
MOVE24 90,60,156,99,114, ,90,40,80, , , ,100,40,80, , , ,114,76,145,94,94, ,
SPEED 7
'bring left leg forward
MOVE24 90,63,156,96,114, ,80,40,80, , , ,105,40,80, , , ,114,98,117,99,94, ,
SPEED 2
RETURN
'===============================================
right_and_left_step:
'center body
MOVE24 100,63,156,96,100, ,90,40,80, , , ,105,40,80, , , ,100,100,117,99,100, ,
'shift weight left
MOVE24 112,76,145,96,90, ,100,40,80, , , ,105,40,80, , , ,82,100,117,99,114, ,
SPEED 5
'lift right leg
MOVE24 114,76,145,94,94, ,100,40,80, , , ,90,40,80, , , ,90,60,156,99,114, ,
SPEED 7
'bring right leg forward
MOVE24 114,98,117,99,94, ,105,40,80, , , ,80,40,80, , , ,90,63,156,96,114, ,
SPEED 2
'center body
MOVE24 100,100,117,99,100, ,105,40,80, , , ,90,40,80, , , ,100,63,156,96,100, ,
'shift weight right
MOVE24 82,100,117,99,114, ,105,40,80, , , ,100,40,80, , , ,112,76,145,96,90, ,
SPEED 5
'lift left leg
MOVE24 90,60,156,99,114, ,90,40,80, , , ,100,40,80, , , ,114,76,145,94,94, ,
SPEED 7
'bring left leg forward
MOVE24 90,63,156,96,114, ,80,40,80, , , ,105,40,80, , , ,114,98,117,99,94, ,
SPEED 2
'center body
MOVE24 100,63,156,96,100, ,90,40,80, , , ,105,40,80, , , ,100,100,117,99,100, ,
IF buffer > 70 THEN GOTO stand_straight
IF buffer < 70 THEN GOTO right_and_left_step
'===============================================
stand_straight:
'shift weight left
MOVE24 112,76,145,96,90, ,100,40,80, , , ,105,40,80, , , ,82,100,117,99,114, ,
SPEED 5
'straighten right leg
MOVE24 112,76,145,96,94, ,100,40,80, , , ,100,40,80, , , ,88,77,140,96,114, ,
SPEED 2
'stand straight, arms out
MOVE24 100,76,145,94,100, ,100,40,80, , , ,100,40,80, , , ,100,76,145,94,100, ,
RETURN