Re: Algorithm for counting number of lines travelled over
- From: "Lytol" <Brian.E.Smith@xxxxxxxxx>
- Date: 23 Dec 2005 09:59:26 -0800
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. =)
.
- References:
- Algorithm for counting number of lines travelled over
- From: tastytoad
- Algorithm for counting number of lines travelled over
- Prev by Date: Re: Algorithm for counting number of lines travelled over
- Next by Date: Re: FSM Algorithm for counting number of lines travelled over
- Previous by thread: Re: Algorithm for counting number of lines travelled over
- Next by thread: Re: Algorithm for counting number of lines travelled over
- Index(es):
Relevant Pages
|