|
Explore TEAMS!
|
Student /
TaylorGendronLabs2Taylor Gendron Lab4 Blue Cohort Discussion: The purpose of this lab was to recreate Wimp Mode (Which is one of the preprogrammed demos on the create).Wimp mode starts by waiting for push or pull.Then it responds by driving forward 600mm(as if it was running away like a wimp). If hit while in motion then it does a 90 degree turn away from contact and drives 600mm. Although it seems as though it would be easy wimp mode turned out to be quite a task (especially for me!).The biggest problem that arose with Wimp is that in order to be effective many while loops had to be composed inside of eachother. Because of all the errors that can occur when using while loops, the use of debugging tools became crucial.One helpful tool that I used was the cricket display.It helped to let me know what the create was "thinking". I also lit up different LEDS within different while loops so I could see which loop the create was in at all times(and check if it was getting stuck in one portion of the code).A good thing that happened during this lab was that learned how to write and use a function which proved very useful.The function that I used was safe mode and it prevented the robot from falling of a table of down stairs,ect. I was also successful at programming my create in such a way that it would stop the program when I picked it up but resume it when placed it back down again (and it acted as if I had just started the program). Important lessons learned from this project were to always make a flowchart prior to starting programming so you know how to structure it,and to always ask someone who knows what they're doing for help (the solution could possibly be extremely simple and you're just overthinking it).I also learned that it's important to make sure you use == when you are talking about a condition and = when you want to declare a constant or set something to a specific value.Another important lesson that I took from this lab is to place updates and delays in the program so the robot has fresh sensor values to work with. Flowchart? ~Rhine |