lab4 - CMSC 143: Introduction to Object-Oriented...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CMSC 143: Introduction to Object-Oriented Programming with Robots Lab 4: Personalized gamepad() Due September 27, 2010 Submit a copy of your python program ( cmsc143 lab4 NAME.py ) on moodle. Your program should have your name, email, and the date at the top of the file as a comment. The gamepad() function (from the lab #1) makes all the gamepad buttons do something interesting (e.g., move the robot, beep, speak, or take a picture). In this lab, you will create your own myGamepad() . You can make the buttons do whatever you wish, for instance, report the battery voltage, save a picture to a file. For moving the robot with the gamepad the move(translate, rotate) function could be handy. Be creative. Learning Objectives Create a personalized gamepad. Use if statements. Use while loops. Some Gamepad Details For the first part of the assignment, become familiar with getGamepad() ; figure out how the different buttons work and the order they are reported. The
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

lab4 - CMSC 143: Introduction to Object-Oriented...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online