Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
Diff: Sensor.h
- Revision:
- 15:4488660e1a3b
- Parent:
- 12:1632d7391453
- Child:
- 21:5a0c9406e119
--- a/Sensor.h Tue Mar 17 15:50:41 2015 +0000 +++ b/Sensor.h Wed Mar 18 15:34:51 2015 +0000 @@ -12,7 +12,7 @@ { public: /// A new sensor data frame, might be called several (hundred) times a second. - virtual void sensorUpdate(Sensor* source, Vector3 data) = 0; + virtual void sensorUpdate(Vector3 data) = 0; }; virtual void setDelegate(Delegate &d) { @@ -35,9 +35,9 @@ /// Derived classes should use this method to pass sensor data to their owner. Delegate existence check is automatically done before dispatching. void sendData(Vector3 frame) { if (_delegate) - _delegate->sensorUpdate(this, frame); + _delegate->sensorUpdate(frame); } - Delegate * _delegate; + Delegate *_delegate; }; #endif//_H_SENSOR_H \ No newline at end of file