This is the program i am trying to run do you know which start should i remove i tried removing the first start command and it did program succesfullly but nothing actually moved in the robot.
[code]’ Atom / SSC-32 Test
servo0pw var word
movetime var word
servo0pw = 1000
movetime = 2500
start:
servo0pw = 1000
serout p0,i38400,"#0P",DEC servo0pw,“T”,DEC movetime,13]
pause 2500
servo0pw = 2000
serout p0,i38400,"#0P",DEC servo0pw,“T”,DEC movetime,13]
pause 2500
goto start
’ Biped example program.
aa var byte '<- general purpose variable.
rax var word '<- right ankle side-to-side. On pin0
ray var word '<- right ankle front-to-back. On pin1
rkn var word '<- right knee. On pin2
rhx var word '<- right hip front-to-back. On pin3
rhy var word '<- right hip side-to-side. On pin4
lax var word '<- left ankle side-to-side. On pin5
lay var word '<- left ankle front-to-back. On pin6
lkn var word '<- left knee. On pin7
lhx var word '<- left hip front-to-back. On pin8
lhy var word '<- left hip side-to-side. On pin9
ttm var word '<- time to take for the current move.
’ First command to turn the servos on.
for aa=0 to 9
serout p0,i38400,"#", DEC2 aa\1, “P”, DEC 1500, 13]
next
start:
’ First position for step sequence, and time to move, put in your values here.
rax=1400: ray=1400: rkn=1400: rhx=1400: rhy=1400
lax=1400: lay=1400: lkn=1400: lhx=1400: lhy=1400
ttm=1000
gosub send_data
pause ttm
’ Second position for step sequence, and time to move, put in your values here.
rax=1600: ray=1600: rkn=1600: rhx=1600: rhy=1600
lax=1600: lay=1600: lkn=1600: lhx=1600: lhy=1600
ttm=1000
gosub send_data
pause ttm
’ Third…
’ Forth…
’ Etc…
goto start
’ This sends the data to the SSC-32. The serout is all one line. Use |!
send_data:
serout p0,i38400,"#0P",DEC rax,"#1P",DEC ray,"#2P",DEC rkn,"#3P",DEC |
rhx,"#4P",DEC rhy,"#5P",DEC lax,"#6P",DEC lay,"#7P",DEC lkn,"#8P",DEC |
lhx,"#9P",DEC lhy,“T”,DEC ttm,13]
return[/code]