Hello,
Just a little background information: my robot uses the vision sensor in autonomous to track the color of the middle and low flag to position itself horizontally so that it can hit and turn the flags.
At a recent competition we noticed that our auton was missing in a lot of matches, and after watching those matches we noticed our robot’s vision sensor was tracking people standing or walking in the background with red and blue colored attire instead of the flags, resulting in a miss of both shots. After realizing this, in our next match we asked a ref to allow us to block out all bystanders by standing behind the flagpole (we were wearing black so the sensor would not track us). He said no, because of the rule that drive team members must stand in the alliance station, but then very generously offered to stand in place of one of us to block out any “distractions” to our sensor. This was one solution to our problem, but as you maybe can tell can be troublesome and annoying for both us, to have to explain our predicament every match, and for the ref to stand in a place that may not be convenient for him/her. I was wondering if any of you guys have had a problem similar to this, and could offer any advice? I am not a programmer, but if there is some fix using code we could implement, please say so and I can pass the message along to my programmer.
Thank you
You could try to make the vision sensor only red and blue when they are also right next to green. This would get rid of some problems from people in red or blue in the background. The green on the flag isn’t very big though so that might be hard to perfect.
Not sure what else you could do besides contact the event host beforehand and ask for people to not be allowed behind the net, or for a black sheet to be placed behind the net.
What Mark said is very useful, and why we think vex put green on the flags, Just use two signatures when tracking, if you are trying to toggle the flags have it track the green of the flag and the blue/red depending on which color you are, it might not fix it complete but it will be a great help because not a lot of people wear blue and green, and red and green.