|
Explore TEAMS!
|
Student /
LisapinalsResultsLab4Summary and results
Wimp Mode is a program for the Create to run away from danger, or human kicks. The purpose is to have the Create wheel away when kicked and be able to change directions from another kick even while turning. My wimp mode only starts up when it is safe, the play button is pressed, and the robot is kicked. While it is moving it can be bumped and turn and drive in that direction and stop after it has gone about 609mm. If one bumper sensor is held, the Create will keep turning in place in the opposite direction. When the Create is bumped while turning, it changes directions but sometimes is a little jerky. After the Create has gone about 609mm and stops, it can only start up again with a kick. The loops seem to all be working correctly. The speed of the wimp mode can be easily changed by changing the value of the speed constant in the beginning. Also safe mode works perfectly throughout this program.
This lab taught me how to use loops and functions. I learned that there could be no overlapping loops. In addition, before this lab I thought that a function had to contain a while or if statement. I also learned how to work off of my flowchart and use it as a tool for coding.
|