On Tuesday 02 September 2014 07:47:26 andy pugh did opine
And Gene did reply:
> On 2 September 2014 12:24, Gene Heskett <[email protected]> wrote:
> > But near.N.difference is a parameter, and when an attempt is made to
> > net a signal to it, lcnc goes boom & won't start.
> 
> It could be made into a pin by a very minor edit to
> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/componen
> ts/near.comp;h=fd9a62cd787dbd8f5222a52026b0046069c93749;hb=ebedd0ae45bb
> cde3506c40070600e5d0846ae41d
> 
> But if you want a percentage difference, that is what the "scale"
> parameter is for.
> use a scale of 1.05 and you have a 10% window.

That is actually what I am looking for Andy, thank you.

But I sure can't read that in the man page which is so small and concise 
it can't even be said to suck...

The relevant man page lines:

out is true if in1 and in2 are within a factor of scale (i.e., for in1 
positive, in1/scale <= in2 <= in1*scale), OR if their absolute difference 
is no greater than difference (i.e., |in1-in2| <= difference).  out is 
false otherwise.

A true mathematician would read that correctly, but not all of us can be 
said to fit that category. :(  What little algebra I got in the fraction 
of a year I did go to school as a freshman, was a total waste of time, the 
male teacher was far more interested in telling sexy jokes to horny kids 
than in actually teaching the subject.  Call me a victim, whatever, but 
had I been the school board, he would have been fired 3 days into the 
school year.  Maximum.  He was, IMNSHO, a sexual predator.

Now, since the man page also skips over difference, can you define its 
use?  Is it intended to be a "floor" function, as in at slow speeds where 
friction etc come into play, where the scale sets a very narrow window, it 
would allow a larger error while still reporting true?

Thanks Andy.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to