Senses an earthquake with MPU6050 and gets time, coordenates and other details of the event with an Adafruit GPS. All the info is sent to an HTTP server
Dependencies: MPU6050 mbed-http MBed_Adafruit-GPS-Library
source/REF_VALUES.h@36:32a0a71555f0, 2019-08-01 (annotated)
- Committer:
- Alvaro13
- Date:
- Thu Aug 01 03:43:28 2019 +0000
- Revision:
- 36:32a0a71555f0
First commit!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Alvaro13 | 36:32a0a71555f0 | 1 | #ifndef REF_VALUES_H |
Alvaro13 | 36:32a0a71555f0 | 2 | #define REF_VALUES_H |
Alvaro13 | 36:32a0a71555f0 | 3 | |
Alvaro13 | 36:32a0a71555f0 | 4 | #include <string> |
Alvaro13 | 36:32a0a71555f0 | 5 | |
Alvaro13 | 36:32a0a71555f0 | 6 | struct corelation { |
Alvaro13 | 36:32a0a71555f0 | 7 | string scale; |
Alvaro13 | 36:32a0a71555f0 | 8 | float lowBound; |
Alvaro13 | 36:32a0a71555f0 | 9 | float highBound; |
Alvaro13 | 36:32a0a71555f0 | 10 | string perception; |
Alvaro13 | 36:32a0a71555f0 | 11 | string damage; |
Alvaro13 | 36:32a0a71555f0 | 12 | } ; |
Alvaro13 | 36:32a0a71555f0 | 13 | |
Alvaro13 | 36:32a0a71555f0 | 14 | corelation notAppreciable = {"I", 0.0000, 0.0017, "Not Appreciable", "None"}; |
Alvaro13 | 36:32a0a71555f0 | 15 | corelation verySlight = {"II-III", 0.0017, 0.0140, "Very Slight", "None"}; |
Alvaro13 | 36:32a0a71555f0 | 16 | corelation slight = {"IV", 0.0140, 0.0390, "Slight", "None"}; |
Alvaro13 | 36:32a0a71555f0 | 17 | corelation moderate = {"V", 0.0390, 0.0920, "Moderate", "Very Slight"}; |
Alvaro13 | 36:32a0a71555f0 | 18 | corelation strong = {"VI", 0.0920, 0.1800, "Strong", "Slight"}; |
Alvaro13 | 36:32a0a71555f0 | 19 | corelation veryStrong = {"VII", 0.1800, 0.3400, "Very Strong", "Moderate"}; |
Alvaro13 | 36:32a0a71555f0 | 20 | corelation severe = {"VIII", 0.3400, 0.6500, "Severe", "Moderate to Strong"}; |
Alvaro13 | 36:32a0a71555f0 | 21 | corelation violent = {"IX", 0.6500, 1.2400, "Violent", "Strong"}; |
Alvaro13 | 36:32a0a71555f0 | 22 | corelation extreme = {"X+", 1.2400, 20.0000, "Extreme", "Very Strong"}; |
Alvaro13 | 36:32a0a71555f0 | 23 | |
Alvaro13 | 36:32a0a71555f0 | 24 | typedef struct { |
Alvaro13 | 36:32a0a71555f0 | 25 | float x; |
Alvaro13 | 36:32a0a71555f0 | 26 | float y; |
Alvaro13 | 36:32a0a71555f0 | 27 | }acceleration ; |
Alvaro13 | 36:32a0a71555f0 | 28 | |
Alvaro13 | 36:32a0a71555f0 | 29 | |
Alvaro13 | 36:32a0a71555f0 | 30 | |
Alvaro13 | 36:32a0a71555f0 | 31 | |
Alvaro13 | 36:32a0a71555f0 | 32 | |
Alvaro13 | 36:32a0a71555f0 | 33 | |
Alvaro13 | 36:32a0a71555f0 | 34 | #endif |