#ifndef COMPASSPROCESSOR_H
#define COMPASSPROCESSOR_H
+#define AXES 3
+#define TWO_PI 6.283185307179586476925286766559
+#define RADIAN_MULTIPLIER 57.295779513082320876798154814105
+#define ROTATION_180 180
#include "baseprocessor.h"
virtual int get_property(unsigned int property_level,
base_property_struct &result);
+ virtual void process_input_events(const std::vector <input_event *> &events);
+private:
+ double min_xyz[AXES];
+ double max_xyz[AXES];
+ double offset[AXES];
+ double mgval[AXES];
+ double head[AXES];
+ double previous[AXES];
};
#endif // COMPASSPROCESSOR_H