some fixes [multithreading,..]

needed interface changes [new options]
logger for android
wifi-ap-optimization
new test-cases
This commit is contained in:
2016-09-28 12:19:14 +02:00
parent 91e3367372
commit 4f511d907e
62 changed files with 1418 additions and 175 deletions

View File

@@ -2,6 +2,8 @@
#define ACCELEROMETERDATA_H
#include <cmath>
#include <sstream>
/** data received from an accelerometer sensor */
struct AccelerometerData {
@@ -40,6 +42,12 @@ struct AccelerometerData {
return AccelerometerData(x/val, y/val, z/val);
}
std::string asString() const {
std::stringstream ss;
ss << "(" << x << "," << y << "," << z << ")";
return ss.str();
}
};
#endif // ACCELEROMETERDATA_H

View File

@@ -2,8 +2,12 @@
#define GYROSCOPEDATA_H
#include <cmath>
#include <sstream>
/** data received from a gyroscope sensor */
/**
* data received from a gyroscope sensor
* IN RADIANS!
*/
struct GyroscopeData {
float x;
@@ -12,12 +16,19 @@ struct GyroscopeData {
GyroscopeData() : x(0), y(0), z(0) {;}
/** ctor from RADIANS */
GyroscopeData(const float x, const float y, const float z) : x(x), y(y), z(z) {;}
float magnitude() const {
return std::sqrt( x*x + y*y + z*z );
}
std::string asString() const {
std::stringstream ss;
ss << "(" << x << "," << y << "," << z << ")";
return ss.str();
}
};
#endif // GYROSCOPEDATA_H