1
EECS1011Z Lab F
2
Introduction
3
Getting started
4
Getting the MATLAB code needed for the lab
5
Write some
for
loops
(a) Add two vectors elementwise
(b) Compute a moving average
(c) Breaking out of a loop
6
Important note regarding the pan-tilt platform
7
Connecting the pan-tilt platform to the computer
7.1
Setting up the Advanced Servo Controller
7.2
Setting up the pan-tilt platform
8
Capturing and viewing images
8.1
Viewing the video feed from the camera
8.2
Capturing an image
8.3
Viewing the captured image
9
Convert a colour to a grayscale value
9.1
Write a function to convert a colour to a grayscale value
9.2
Test your function
10
Calculating a moving average
10.1
Write a function to compute the moving average
10.2
Test your function
11
Localizing the target
11.1
Write a function to find the left edge of the stripe
11.2
Write a function to find the right edge of the stripe
12
Try tracking the target
13
Ask a TA to mark your lab
14
Submit your work
14.1
Re-submitting your work
14.2
Retrieving your submitted work
15
Clean up
1
EECS1011Z Lab F
Tuesday Feb 25 and Friday Feb 28