by Entrastic » Sun Jan 20, 2008 9:12 pm
by Entrastic
Sun Jan 20, 2008 9:12 pm
Guys,
I found couple of old servos in my room and wanted to test them. So I connected them to my Robonova and was messing aroudn with the values for all the servos in the 'standard pose' to figure out the servo number.
below is the code I was using.
DIM A AS BYTE
DIM A16 AS BYTE
DIM v 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:
' MOVE G24, ,90, , , , , , , , , , , , , , , , , , , , , ,
'================================================
standard_pose:
MOVE G6A,100, 76, 145, 93, 100, 50
MOVE G6D,100, 76, 145, 93, 100, 50
MOVE G6B,100, 30, 80, 160,160, 160
MOVE G6C,100, 30, 80, 100, 100, 100
WAIT
RETURN
'================================================
'
As I was testign a single line in the program, I didnt include anythign in the main. Then later I uploaed the entire program to my robonova and this is what he did. Please note that my hand is there in the video just to make sure he doesnt fall off. Can some one tell me why he is doing this ritual everytime i turn him on without me programming it. Am I doing something stupid. Is there any simple explanation??
http://www.youtube.com/watch?v=JpOX29FwWlg
- Code: Select all
[media]http://www.youtube.com/watch?v=JpOX29FwWlg&rel=1[/media]
Guys,
I found couple of old servos in my room and wanted to test them. So I connected them to my Robonova and was messing aroudn with the values for all the servos in the 'standard pose' to figure out the servo number.
below is the code I was using.
DIM A AS BYTE
DIM A16 AS BYTE
DIM v 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:
' MOVE G24, ,90, , , , , , , , , , , , , , , , , , , , , ,
'================================================
standard_pose:
MOVE G6A,100, 76, 145, 93, 100, 50
MOVE G6D,100, 76, 145, 93, 100, 50
MOVE G6B,100, 30, 80, 160,160, 160
MOVE G6C,100, 30, 80, 100, 100, 100
WAIT
RETURN
'================================================
'
As I was testign a single line in the program, I didnt include anythign in the main. Then later I uploaed the entire program to my robonova and this is what he did. Please note that my hand is there in the video just to make sure he doesnt fall off. Can some one tell me why he is doing this ritual everytime i turn him on without me programming it. Am I doing something stupid. Is there any simple explanation??
http://www.youtube.com/watch?v=JpOX29FwWlg
- Code: Select all
[media]http://www.youtube.com/watch?v=JpOX29FwWlg&rel=1[/media]