On 23 August 2011 22:01, John Prentice <j...@castlewd.freeserve.co.uk> wrote:

> Please could you amplify "that writes direct to an IO pin"? I have been
> reading the source of a few components (from and2 to bldc) but I have not
> found much documentation on exactly how the magic works.

Well, this seems to work:

file munger.comp
----------------------
component munger "converts an input pin to an io pin";

pin in float in;
pin io float out;

function _;
license "GPL";

;;
FUNCTION(_){
out = in;
}
--------------------------

> In a
> wild moment I wondered about changing the "gains" to Inputs but am not
> confident on recompiling components.

That would work too, and you can compile either the "munger" or a
modified PID with
comp --install {filename}

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to