def makeServoSpeedPacket(ID, maxSpeed):
if <NUM_LIT:0.0> > maxSpeed > <NUM_LIT:1.0>:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>speed = int(maxSpeed*<NUM_LIT>)<EOL>pkt = makeWritePacket(ID, xl320.XL320_GOAL_VELOCITY, le(speed))<EOL>return pkt<EOL>
Run servo between 0.0 to 1.0, where 1.0 is 100% (full) speed.