Re: Algorithm for counting number of lines travelled over



Def sounds like noise from the sensor. Remember that most
sensors/signals dont necessarily operate in the same discrete manner
that computer logic does (i.e. you will not receive constant "on_white"
or "on_black" necessarily due to noise). Try altering the algorithm to
require an on_white signal for X iterations of the loop (and find the
right threshold for X). Your chance of getting false positives X times
in a row decreases exponentially. Only be careful that you do not end
up with the same problem reversed (i.e. "on_black" false positives
prevent you from ever registering a white line). At least, that's
probably what I'd try. =)

.



Relevant Pages

  • Re: [PATCH] update checkpatch.pl to version 0.08
    ... some code we just didn't forsee that generates false positives. ... can see a consistent history of cleaning these up as quickly as people send ... And it will be known as "noise maker" for years, ...
    (Linux-Kernel)
  • Re: [PATCH] update checkpatch.pl to version 0.08
    ... some code we just didn't forsee that generates false positives. ... And it will be known as "noise maker" for years, ... There had been need of rain for many days. ...
    (Linux-Kernel)
  • Re: refering to base classes
    ... noise = "" ... def voice: ... but it can be helpful with complex inheritence scheme ...
    (comp.lang.python)