-
Notifications
You must be signed in to change notification settings - Fork 0
/
CBalanceComponent.h
39 lines (27 loc) · 953 Bytes
/
CBalanceComponent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef CBALANCECOMPONENT_H
#define CBALANCECOMPONENT_H
#include "CI2cClient.h"
#include "sensors/accelerometer/CAccelerometr.h"
#include "sensors/gyroscope/CGyroscope.h"
#include "sensors/magnetometer/CMagnetometer.h"
class CBalanceComponent
: public IAcelerometrListener
, public IGyroscopeListener
, public IMagnetometerListener
{
public:
CBalanceComponent();
void startWork();
private:
CI2cClient i2c;
CAccelerometr acceleromtr;
CGyroscope gyroscope;
CMagnetometer magnetometr;
CGeometric3dVector accelerData;
CGeometric3dVector gyroData;
CGeometric3dVector magnDato;
virtual void informationAcelDataRecieved(const CGeometric3dVector& threeAxisReadings) ;
virtual void informationGyroDataRecieved(const CGeometric3dVector& threeAxisReadings) ;
virtual void informationMagnDataRecieved(const CGeometric3dVector& threeAxisReadings) ;
};
#endif // CBALANCECOMPONENT_H