component idb "Inverse Deadband";

pin in float in "Input";
pin out float out "Output";
pin io float amount;

function _ ;

license "GPL";
author "Anders Wallin";
;;

FUNCTION(_)
{
    if (in==0.0)
	out=in;
    else if (in<0.0)
	out=in-amount;
    else if (in>0.0)
	out=in+amount;

	return 0;
}
