geometry changes/fixes/new features

new grid walkers + fixes
new test-cases
worked on step/and turn detection
android offline-data-reader
worked on vap-grouping
This commit is contained in:
2016-09-07 10:16:51 +02:00
parent a203305628
commit d283d9b326
27 changed files with 976 additions and 333 deletions

View File

@@ -18,6 +18,28 @@ struct AccelerometerData {
return std::sqrt( x*x + y*y + z*z );
}
AccelerometerData& operator += (const AccelerometerData& o) {
this->x += o.x;
this->y += o.y;
this->z += o.z;
return *this;
}
AccelerometerData& operator -= (const AccelerometerData& o) {
this->x -= o.x;
this->y -= o.y;
this->z -= o.z;
return *this;
}
AccelerometerData operator - (const AccelerometerData& o) const {
return AccelerometerData(x-o.x, y-o.y, z-o.z);
}
AccelerometerData operator / (const float val) const {
return AccelerometerData(x/val, y/val, z/val);
}
};
#endif // ACCELEROMETERDATA_H