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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers REF_VALUES.h Source File

REF_VALUES.h

00001 #ifndef REF_VALUES_H
00002 #define REF_VALUES_H
00003 
00004 #include <string> 
00005 
00006 struct corelation {
00007     string scale;
00008     float lowBound;
00009     float highBound;
00010     string perception;
00011     string damage;
00012 } ;
00013 
00014 corelation notAppreciable = {"I", 0.0000, 0.0017, "Not Appreciable", "None"};
00015 corelation verySlight = {"II-III", 0.0017, 0.0140, "Very Slight", "None"};
00016 corelation slight = {"IV", 0.0140, 0.0390, "Slight", "None"};
00017 corelation moderate = {"V", 0.0390, 0.0920, "Moderate", "Very Slight"};
00018 corelation strong = {"VI", 0.0920, 0.1800, "Strong", "Slight"};
00019 corelation veryStrong = {"VII", 0.1800, 0.3400, "Very Strong", "Moderate"};
00020 corelation severe = {"VIII", 0.3400, 0.6500, "Severe", "Moderate to Strong"};
00021 corelation violent = {"IX", 0.6500, 1.2400, "Violent", "Strong"};
00022 corelation extreme = {"X+", 1.2400, 20.0000, "Extreme", "Very Strong"};
00023 
00024 typedef struct {
00025     float x;
00026     float y;
00027 }acceleration ;
00028 
00029 
00030 
00031 
00032 
00033 
00034 #endif