Can you guess what the red ball is for?
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXUeZDoy_uDnB-BpLHNbyFCVR_jKmROcYjrz6K20dFJ5_CL9YF9UYN-Kl-YLTGZkbQNrIFGAql_dupU8qDkf0i3kpXfJcKcvA22rsGmYQ0kocum16fOVfCE4pJZffF9qYwAi-hr_1bIzSHGJHM/s400/IMG_20100812_184335.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuBHhHkKwWshUR8L7f1hx8VLxkK4yh6H0Rg9fniXuhPEoDLoWIbrmlyfbV1qEQ9frQ8xK7UpK9N0lLKuLA7MDphWNtEP5nUwRchQ-D5jzhjvR5BB9rwf31VVE2zCVhPHnJp0A_B3eNluCmmhIg/s400/IMG_20100812_183830.jpg)
OK, so the red ball is there so that the robot knows it made a full circle. You can see that the color sensor rotates with the rest of the robot while the ball remains still.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyPM-gGKt4JiyEeZbOg8nYMoST2nq5Eh2-lunWyxFi06q0XOoU5uisOKkqpO9xiJu_oIBN-CSJiPhJaColaipuNq1hzaLXZpmJJll8HHCjFMjnN3jOyccwIRTpK3KdzQkIhXJO1YzBGc-aDxry/s400/IMG_20100812_183728.jpg)
Here's the source code for the program that the robot is running.
No comments:
Post a Comment