|
In lugnet.robotics, Ben Erwin writes:
> > The lighting conditions there were much
> > more suitable for this event.
>
> I don't know anything about this competition, but can't you just store the
> black line and the table as two different variables and have your program pick
> the halfway point and use that in its decision making when line-following? Of
> course, you couldn't do this with pre-2.0 RCX Code, but with everything else
> you could.
Yes, that is indeed how you must do it. But there are two things that make
this more difficult: first of all, the surface is highly reflective (while
the line itself is flat). You'll get a high percentage of light return even
if the light sensor is only partly over the white area. Secondly, there is
a great deal of natural daylight entering the room from a very tall wall of
windows.
This means that you'll be getting lots of stray light coming into the light
sensor, not just the reflection of its LED. Also, as the robot follows the
line, it will be facing different directions, so the amount of stray light
coming in will vary, depending on which direction it is facing.
So it's not a trivial task, especially since you need to react on your
readings quickly. But you are very welcome to come up with an entry for the
next competition! Start coding now - it's in mid-April.
--
David Schilling
|
|
Message is in Reply To:
9 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|