MAV Assignments

Using what you know about Move At Velocity [mav()]…

A. Write a program that will make your robot move forward quite slowly for a few seconds. (Use smaller values in the mav() functions, then download and run the code.  Assign lower values and reload/run to see if the robot still moves.)  Try holding the robot back while it is running and see what happens.

Advanced assignments for students who have learned about ‘while’ loops and ‘for’ statements:

B. Write a program that will make your robot start slow, build up speed to the maximum speed, and then slow down again before stopping.

C. Write a program that will make your robot go straight as fast as possible towards an object, slow down and turn around the object, return as fast as possible to where it started, and then turn around to face the direction it faced in the beginning.

Please submit your code in the comments field (below) after you have run your program. If you can, include a link to a video of your robot executing the program.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s