Page 2 of 2
Re: Need help Urgently (NXT COLOR SENSOR)
Posted: 16 Nov 2011, 14:24
by hassenplug
phoenixdancer wrote:Im will do what hassenplug suggested tomorrow. I should have created such a debug program from the start -.- how simple minded of me!
Doing that kind of thing is pretty easy to overlook. Personally, I'm a really good programmer, so I don't need to do it. At least, that's what I think, WAY TOO MUCH.
Steve
Re: Need help Urgently (NXT COLOR SENSOR)
Posted: 16 Nov 2011, 18:28
by phoenixdancer
Well I debugged it. And managed too get it fixed
Kinda works but sometimes misses a colour or sees it when not required lol.
I can live with that though.
Re: Need help Urgently (NXT COLOR SENSOR)
Posted: 17 Nov 2011, 03:23
by loopymech
I for one am curious what you found and what code you fixed to make things work.
If your robot is still missing colors (or thinks it's seeing them at times when it should not), you might need to add some noise filtering or averaging to the sensor data.
See the thread below for an interesting discussion about filtering...
https://sourceforge.net/apps/phpbb/mind ... p?f=2&t=52
-Loopy