Good morning!
In the VexVR Python course, unit 7, it says the down eye sensor does not detect color on the floors as an object. On the line detector playground, the down eye sensor does detect the line and can then change its actions based on the while not loops. If I use that same logic and code in the castle color match playground to detect the outline of the red, green and blue squares, it won’t work. The robot will keep driving even if the down sensor detects the color. Should the down eye be able to sense the color of the lines in the castle color match playground just as it can sense in the line detection playground? If so, then I’ll look my code over again.
Thanks-
Michelle
1 Like
Let’s call it… video game magic in the sake of teaching coding concepts.
We’ve constructed the “Down Eye” in VEXcode VR to only detect objects and not the floor by default. Theoretically, the “Down Eye” would always detect an object (the floor) but it doesn’t - because we’ve basically made it ignore the “floor” on standard playgrounds. This allows the down eye to pick up when a disk is present (object detected block) and the color of said disk (color detected block). Since the boxes where the disks are delivered are part of the “floor”, they’re effectively ignored.
On the line detector playground, it does not detect the floor but does see the “lines” because the elements are not part of the “floor” but a line placed over top of the base floor. Since this playground’s activity is geared towards line detection, we had to make the lines visible to the eye - but in the castle color match, the lines were not the objective but rather detecting disks was the objective.
3 Likes
Thank you for the clarification. I’m trying to apply concepts across playgrounds but I have to be careful as the setups are not necessarily the same. That’s good to know. Thanks for answering all my questions! This is my first go around with VexVR and Python so I’m developing my supplemental materials. Once I have done this the first time and developed my own pieces I’ll be much more self-sufficient!
Michelle
2 Likes
@Michelle_Sherry all of your questions are incredible please keep asking them!
We’re here to continuously support you. And if you need any help modifying resources please let us know.
2 Likes