CPS-Lab1 / Mbed 2 deprecated Lab7

Dependencies:   MPL3115A2 mbed

Committer:
klemmel
Date:
Fri Mar 09 16:56:03 2018 +0000
Revision:
5:327b79f5428c
Parent:
4:dd5899b3eb3b
Finished Lab 07.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
csinders 4:dd5899b3eb3b 1 Documentation on how we set up this assignment.
csinders 4:dd5899b3eb3b 2
csinders 4:dd5899b3eb3b 3 We created an array to hold the values that we read from the Altimeter.
csinders 4:dd5899b3eb3b 4 We read values every half second and store them in the array. When a p is pressed
csinders 4:dd5899b3eb3b 5 we print out all of the values in the array. We have the initial values for the array set to -1
csinders 4:dd5899b3eb3b 6 to easily differentitate between the read values and the values that are already in it.
csinders 4:dd5899b3eb3b 7 We set pin A4 as an interrupt pin and constantly read from it to see if it has
csinders 4:dd5899b3eb3b 8 electricity flowing through it for if we should read values. Effectively
klemmel 5:327b79f5428c 9 having it act as a button for when to start. Graph will be included on Canvas upload.
klemmel 5:327b79f5428c 10
klemmel 5:327b79f5428c 11 Geology:
klemmel 5:327b79f5428c 12 - Velocity 1: 1.06875 m/.5s
klemmel 5:327b79f5428c 13 - Velocity 2: 1.0875 m/.5s
klemmel 5:327b79f5428c 14 - Average: 1.078125 m/.5s
klemmel 5:327b79f5428c 15
klemmel 5:327b79f5428c 16 Luddy Hall:
klemmel 5:327b79f5428c 17 - Velocity 1: 1.27884 m/.5s
klemmel 5:327b79f5428c 18 - Velocity 2: 1.36806 m/.5s
klemmel 5:327b79f5428c 19 - Average: 1.32345 m/.5s