|
Explore TEAMS!
|
Student /
GarciaPraticalExamDaniela Garcia: Pratical Exam(red cohort) Determining Color of Ball & Responding Accordingly ![]() PurposeThe Purpose of my code is to first set the create to wait for a button to be pressed (play=blue advance=yellow) and drive to the center of the court. (After an egg has been found), the create will then determine if the ball is the color that is wanted and then react accordingly. If the ball is the correct color, the robot will rotate to determine the highest value and drive in that direction. Once the create senses that it is in front of the light, it will raise up the arm, and drive foward. When the push sensors have been pressed, the create will drive foward (away from goal)and will rotate 180 degrees so that it can continue to search for eggs. ResultsThe first piece of code (buttons & initial movement) were successful and did what I expected them to do. There was some trouble with finding the highest light readings and if given more time, those bugs would be fixed. Lessons Learned
|