by billyzelsnack » Wed Jan 27, 2010 5:34 am
by billyzelsnack
Wed Jan 27, 2010 5:34 am
I implemented a SYNCREAD. The video shows two different ways of doing the same thing..
The regular way.
read 18 servo positions
syncwrite the position of servo 5 to all 18 servos ( except 5 )
21fps
The syncread way.
syncread 18 servo positions
syncwrite the position of servo 5 to all 18 servos ( except 5 )
65fps
My SYNCREAD protocol is pretty basic, but it's general..
255
255
id ( teensy dynamixel device )
length
80 ( syncwrite instruction, not hex )
address 0
count 0
id 0
address 1
count 1
id 1
...
checksum
The return packet I get is..
255
255
id ( teensy )
length
error
whatever the 0 read instruction returned with the first two bytes and last byte stripped
whatever the 1 read instruction returned with the first two bytes and last byte stripped
...
checksum
How fast are other people able to read and write all 18 servos? I'm not sure my interface and code is not adding extra latency for no reason. I'm going to put in some timestamps to see what is actually still slowing things down. I'd really like to hit 100fps.
I implemented a SYNCREAD. The video shows two different ways of doing the same thing..
The regular way.
read 18 servo positions
syncwrite the position of servo 5 to all 18 servos ( except 5 )
21fps
The syncread way.
syncread 18 servo positions
syncwrite the position of servo 5 to all 18 servos ( except 5 )
65fps
My SYNCREAD protocol is pretty basic, but it's general..
255
255
id ( teensy dynamixel device )
length
80 ( syncwrite instruction, not hex )
address 0
count 0
id 0
address 1
count 1
id 1
...
checksum
The return packet I get is..
255
255
id ( teensy )
length
error
whatever the 0 read instruction returned with the first two bytes and last byte stripped
whatever the 1 read instruction returned with the first two bytes and last byte stripped
...
checksum
How fast are other people able to read and write all 18 servos? I'm not sure my interface and code is not adding extra latency for no reason. I'm going to put in some timestamps to see what is actually still slowing things down. I'd really like to hit 100fps.