by P5hycal » Fri Dec 28, 2007 5:18 pm
by P5hycal
Fri Dec 28, 2007 5:18 pm
This is my code. It doesn't work at my robonova. I can't find my error. Please help me.
Regards,
'================================
DIM A AS BYTE
DIM RXC AS BYTE
PTP SETON
PTP ALLON
'== motor diretion setting ======================
DIR G6A,1,0,0,1,0,0
DIR G6B,1,1,1,1,1,1
DIR G6C,0,0,0,0,0,0
DIR G6D,0,1,1,0,1,0
'== motor start position read ===================
GETMOTORSET G6A,1,1,1,1,1,0
GETMOTORSET G6B,1,1,1,0,0,0
GETMOTORSET G6C,1,1,1,0,0,0
GETMOTORSET G6D,1,1,1,1,1,0
SPEED 5
'== motor power on =============================
MOTOR G24
GOSUB standard_pose
'================================================
main:
continue:
ERX 2400,RXC,Continue
A=RXC-48
ON A GOTO MAIN,K1,K2
GOTO main
K1: GOSUB forward_walk
GOSUB standard_pose
GOTO main
K2: GOSUB bow_pose
GOSUB standard_pose
GOTO main
This is my code. It doesn't work at my robonova. I can't find my error. Please help me.
Regards,
'================================
DIM A AS BYTE
DIM RXC AS BYTE
PTP SETON
PTP ALLON
'== motor diretion setting ======================
DIR G6A,1,0,0,1,0,0
DIR G6B,1,1,1,1,1,1
DIR G6C,0,0,0,0,0,0
DIR G6D,0,1,1,0,1,0
'== motor start position read ===================
GETMOTORSET G6A,1,1,1,1,1,0
GETMOTORSET G6B,1,1,1,0,0,0
GETMOTORSET G6C,1,1,1,0,0,0
GETMOTORSET G6D,1,1,1,1,1,0
SPEED 5
'== motor power on =============================
MOTOR G24
GOSUB standard_pose
'================================================
main:
continue:
ERX 2400,RXC,Continue
A=RXC-48
ON A GOTO MAIN,K1,K2
GOTO main
K1: GOSUB forward_walk
GOSUB standard_pose
GOTO main
K2: GOSUB bow_pose
GOSUB standard_pose
GOTO main