- worked on about everything - grid walker using plugable modules - wifi models - new distributions - worked on geometric data-structures - added typesafe timestamps - worked on grid-building - added sensor-classes - added sensor analysis (step-detection, turn-detection) - offline data reader - many test-cases
24 lines
392 B
C++
24 lines
392 B
C++
#ifndef GYROSCOPEDATA_H
|
|
#define GYROSCOPEDATA_H
|
|
|
|
#include <cmath>
|
|
|
|
/** data received from a gyroscope sensor */
|
|
struct GyroscopeData {
|
|
|
|
float x;
|
|
float y;
|
|
float z;
|
|
|
|
GyroscopeData() : x(0), y(0), z(0) {;}
|
|
|
|
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 );
|
|
}
|
|
|
|
};
|
|
|
|
#endif // GYROSCOPEDATA_H
|