Use the code you wrote in 1. and 2. to create a program that uses the camera on the Astro Pi to take a series of photos then works out the speed from them. Make sure you call this program main.py You can test it using the Astro Pi Replay Tool.
Improving your code and getting it ready to submit
Now that you have a basic working program, you need to carry out the following steps to get it ready for the rigours of running in space: