def makeServoPacket(ID, angle):
if not (<NUM_LIT:0.0> <= angle <= <NUM_LIT>):<EOL><INDENT>raise Exception('<STR_LIT>'.format(angle))<EOL><DEDENT>val = int(angle/<NUM_LIT>*<NUM_LIT>)<EOL>pkt = makeWritePacket(ID, xl320.XL320_GOAL_POSITION, le(val))<EOL>return pkt<EOL>
Commands the servo to an angle (in degrees)