Quote:
Originally Posted by orangemoore
I can give you what I believe our programming team figured out for this problem. Our approach to the problem was to take one sensor but 2 readings. The first reading is from the initial starting position the next reading is taken after you go a known distance. We did this by driving 1 rotation or 1' for 4" wheels. Then you take a second reading. This would then give you a unique position signature for the 3 positions that you are able to tell what the position of the goal is. From there you can execute 1 of 3 unique codes for the different positions.
One thing to note is our programming team has not worked a lot with this since our strategy changed away from it but the idea should still work.
I have been a programmer before so this code doesn't seem to hard to write.
|
Hi There! I've been trying to figure out how to do that for a long time, I recently found out that the sun was messing with the IR Sensor since we are next to a window, we have a program that starts in the middle of the parking zone with the left wheel on the foam connector line, with the blinds closed and the left beacon (new style) set at 1200hz 360 and the right beacon (old style) facing directly out from the center piece at assuming 1200hz 180? i have 2 ir sensors and 1 ultrasonic (currently not in use until I get the ir working and I can use it for distance from goal) the problem is that i get Ldir = 5 and Rdir = 5 allmost all the time at each of the three positions, any ideas? If you need the code or any other information just let me know and I'll post it whenever I have access to our robotics computer with RobotC on it