Am 16.03.2014 um 15:41 schrieb andy pugh <bodge...@gmail.com>:

> On 16 March 2014 14:15, Michael Haberler <mai...@mah.priv.at> wrote:
>> sure - with the consequence that you cannot connect a modified scale with an 
>> IO pin to the pid comp and have the proper semantics for initialisation of 
>> the scale with the current value as used by pid
> 
> That's still a bit awkward anyway, as you have to make sure that your
> HAL does the setp of the initial PID gains from the INI before it nets
> your new bidirectional scale widget, otherwise the setp will fail.
> (You can sets the signal from the HAL, I guess. )
> 
> The other alternative is a scale with an initvalue input pin that can
> be "setp"-ed by the HAL file, and a pure output pin to drive a pure
> input pin on the PID.

the example I just posted solves this by preferring the HAL value over the 
widget value. If the HAL value changes, the widget value is set accordingly; 
only if the HAL pin has not changed, a change in the widget value is considered.

That way linking a halio_hscale1 to a non-zero signal, or a setp, will cause 
the widget to 'jump' to the HAL value.

-m

> 
> -- 
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
> 
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to