initial commit

-converter .txt -> MatLab matrices
This commit is contained in:
2015-12-25 10:07:48 +01:00
parent 28caf25ea8
commit c41200cb6a
11 changed files with 902 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#ifndef SENSORS_H
#define SENSORS_H
enum class Sensors {
UNKNOWN,
TYPE_ACCELEROMETER,
TYPE_GYROSCOPE,
TYPE_MAGNETIC_FIELD,
};
/** convert string to sensor-enum */
static Sensors getSensor(const std::string& s) {
if ("TYPE_MAGNETIC_FIELD" == s) {return Sensors::TYPE_MAGNETIC_FIELD;}
else if ("TYPE_ACCELEROMETER" == s) {return Sensors::TYPE_ACCELEROMETER;}
else if ("TYPE_GYROSCOPE" == s) {return Sensors::TYPE_GYROSCOPE;}
else {return Sensors::UNKNOWN;}
}
#endif // SENSORS_H