Elevator Altimeter

Dependencies:   Lab7 mbed

Dependents:   Lab7

lab_documentation.txt

Committer:
kmhatre
Date:
2018-03-10
Revision:
1:cdd11865c2a8
Parent:
0:a67807d31892

File content as of revision 1:cdd11865c2a8:

LAB 7 - DOCUMENTATION
Krish Hemant Mhatre
Ethan Zhang

The code first calculates the altitude (distanceA) then waits for one second and then calculates altitude once again (distanceB).
It calculates the velocity of the elevator by the formula velocity = (difference in altitude)/time.
Time is one second.

The altimeter waas tested in two different elevators - Luddy Hall and Geology Building.
The observations are as follows:

Luddy Hall Up   
Time (s)    Velocity (m/s)
1           0.2500
2           0.1250
3           2.1250
4           2.4375
5           2.5625
6           0.7500
7           0.0625

Luddy Hall Down 
Time (s)    Velocity (m/s)
1           0.0625
2           0.6250
3           1.3750
4           2.3750
5           3.3750
6           1.1875
7           0.2500
8           0.1875
    
Geology Up  
Time (s)    Velocity (m/s)
1           0.1250
2           0.8750
3           1.8125
4           1.3750
5           1.8750
6           1.5625
7           0.2500
8           0.1250

Geology Down    
Time (s)    Velocity (m/s)
1           0.4375
2           1.2500
3           1.6875
4           1.6250
5           1.5000
6           1.5000
7           1.1250
8           0.5625
9           0.4375
10          0.1875


The graphs for all four observations and the eagle schematic of the board have been submitted in canvas.