[PD-dev] object for motion control

Julien Jassaud sojastar at wanadoo.fr
Sun Jan 12 01:41:04 CET 2003


Hello all,

This is my first post to any of the PD lists, so I'll introduce myself 
a little. I'm a student at the national school of fine arts in Paris. 
My main interest is in new media. A fellow student introduced me to 
pure-data. I thought it could be used as a great real time motion 
control system. So I build a little circuit that contols 32 RC servos 
through TCP/IP (works really fine) and started to code a PD object that 
could interface with that circuit.
Basically, this object works. I can connect to the circuit and move any 
of the 32 servos. But to move a servo, I have to send to the object's 
hot inlet a [go servo_number servo_angle] message. I thought I could 
use pack to build such a message but I get a:
error: servo: no method for 'list'
I tried to play a little with class_addmethod, inlet_new and 
floatinlet_new but to no avail.
Can anyone give me a hint to inlet configuration or point me to a good 
tutorial. I'll attach my code and an example (though it won't work 
without the circuit).
This object is designed for Mac OS X. I think it should also compile on 
any UNIX system.

Thanks,
Julien

-------------- next part --------------
A non-text attachment was scrubbed...
Name: servo.c
Type: application/applefile
Size: 67 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20030112/263660f3/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: servo.c
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20030112/263660f3/attachment.asc>
-------------- next part --------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_servo
Type: application/octet-stream
Size: 329 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20030112/263660f3/attachment.obj>


More information about the Pd-dev mailing list