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
Diff: source/REF_VALUES.h
- Revision:
- 36:32a0a71555f0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/source/REF_VALUES.h Thu Aug 01 03:43:28 2019 +0000 @@ -0,0 +1,34 @@ +#ifndef REF_VALUES_H +#define REF_VALUES_H + +#include <string> + +struct corelation { + string scale; + float lowBound; + float highBound; + string perception; + string damage; +} ; + +corelation notAppreciable = {"I", 0.0000, 0.0017, "Not Appreciable", "None"}; +corelation verySlight = {"II-III", 0.0017, 0.0140, "Very Slight", "None"}; +corelation slight = {"IV", 0.0140, 0.0390, "Slight", "None"}; +corelation moderate = {"V", 0.0390, 0.0920, "Moderate", "Very Slight"}; +corelation strong = {"VI", 0.0920, 0.1800, "Strong", "Slight"}; +corelation veryStrong = {"VII", 0.1800, 0.3400, "Very Strong", "Moderate"}; +corelation severe = {"VIII", 0.3400, 0.6500, "Severe", "Moderate to Strong"}; +corelation violent = {"IX", 0.6500, 1.2400, "Violent", "Strong"}; +corelation extreme = {"X+", 1.2400, 20.0000, "Extreme", "Very Strong"}; + +typedef struct { + float x; + float y; +}acceleration ; + + + + + + +#endif \ No newline at end of file