Documentation
This crate provides basic functionnality to communicate with Herkulex DRS (both 0101 and 0201)
servomotors.
It is heavily based on the documentation published by Dongbu Robot which is available
here
.
Examples
The best way to use this library is to use the Servo struct. For example, this how you can set a servomotor (id : 0x40) into continuous rotation.
extern crate drs_0x01;
use Servo;
There is also some more advanced type for user experienced with the herkulex datasheet.
This is how to do the same task (set a servomotor into continuous rotation), but using those types. Moreover we changed the color from blue to red to show how those types give more control.
extern crate drs_0x01;
use *;
use MessageBuilder;
To reboot all the servomotors you can use this message :
extern crate drs_0x01;
use MessageBuilder;
Here is how to enable torque for the servomotor labelled 35 :
extern crate drs_0x01;
use MessageBuilder;
use TorqueControl;