Get the servo velocity
Reads the current velocity from the OpenServo.
[Add information about range of scaling on velocity]
Reading the OpenServo requires two I2C transactions. The first sets the register to be read, and the second is the read transaction.
16bit precision
0x0A |
VELOCITY_HI |
Read Only |
Servo velocity high byte |
0x0B |
VELOCITY_LO |
Read Only |
Servo velocity low byte |
Read the current velocity from the OpenServo. This is the exact position of the OpenServo at the time of reading.
In order to get the current velocity you must get a 16 bit registers. Assuming device = 0x10
Get the velocity:
VELOCITY_HI = 0x0A VELOCITY_LO = 0x0B
send [device VELOCITY_HI]
read [device {vel_hi} {vel_lo}]
send [0x10 0x0A]
read [0x10 {vel_hi} {vel_lo}]
