This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
YASMIN/sensors/AccelerometerSensor.h
2016-07-15 15:00:49 +02:00

23 lines
457 B
C++

#ifndef ACCELEROMETERSENSOR_H
#define ACCELEROMETERSENSOR_H
#include "Sensor.h"
struct AccelerometerData {
float x;
float y;
float z;
AccelerometerData(const float x, const float y, const float z) : x(x), y(y), z(z) {;}
std::string asString() const {
std::stringstream ss;
ss << "(" << x << "," << y << "," << z << ")";
return ss.str();
}
};
class AccelerometerSensor : public Sensor<AccelerometerData> {
};
#endif // ACCELEROMETERSENSOR_H