> 2013/5/11 Lars Andersson <[email protected]>
>
>> Hi group,
>> Trying to control servo P I and D at runtime with potentiometers to
>> practise loop optimising.
>>
>> The statement
>> net P0 input.0.abs-rx-position ==> pid.0.Pgain
>>
>> gives me
>> servo2.hal:35: Signal 'P0' can not add I/O pin 'pid.0.Pgain', it already
>> has OUT pin 'input.0.abs-rx-position'
>>
> It means that input.0.abs-rx-position is OUT pin. Though iy should not be.
> I guess that ==> might be wrong
> Try this:
>
> net P0 input.0.abs-rx-position pid.0.Pgain
>
> Andrew
Yes, " input.0.abs-rx-position" is an out pin, it is the value from a 
potentiometer. My wish is to feed this into the PID Pgain IO pin so I 
can modify Pgain by turning a knob. I find that "net" seems to treat OUT 
and IO pins equal. "setp" makes a difference between OUT and IO so I can 
change Pgain with setp while the system is running, but I can't make 
signal do it.
I am yet to find a way around this.
// Lars

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to