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

Committer:
Alvaro13
Date:
2019-08-01
Revision:
36:32a0a71555f0

File content as of revision 36:32a0a71555f0:

#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