Re: serial port servo control

2006-06-23 Thread Scott David Daniels
Several have suggested struct, I'd suggest you look at array: import array v = array.array('B', [1, 2, 3]) for i in range(17): v[i % 3] *= max(1, i // 3) v.tostring() --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: serial port servo control

2006-06-23 Thread Si Ballenger
On 22 Jun 2006 08:18:08 -0700, [EMAIL PROTECTED] wrote: >So I ordered a mini SSC II (the servo controller), in order to >control some servos from the computer. I was hoping to use python to >do the control but have two questions... > >1) How should I write to the serial port with python? I found

Re: serial port servo control

2006-06-22 Thread Richard Brodie
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 1) How should I write to the serial port with python? I found the > module "pyserial": I don't think there is any need to hunt for anything better. > In C I'd do this by sending 3 char's, as they're only 1 byte, > but i'm not exactl

Re: serial port servo control

2006-06-22 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > So I ordered a mini SSC II (the servo controller), in order to > control some servos from the computer. I was hoping to use python to > do the control but have two questions... > > 1) How should I write to the serial port with python? I found the > module "pyserial":

serial port servo control

2006-06-22 Thread boyle5
So I ordered a mini SSC II (the servo controller), in order to control some servos from the computer. I was hoping to use python to do the control but have two questions... 1) How should I write to the serial port with python? I found the module "pyserial": http://pyserial.sourceforge.net/ on the