IMUDeducedReckoning.h
Go to the documentation of this file.
1/*
2 * IMUDeducedReckoning.h
3 *
4 * Created on: Mar 16, 2014
5 * Author: Dr.-Ing. David Israel González Aguirre
6 * Mail: david.gonzalez@kit.edu
7 */
8
9#pragma once
10
11#include "IIMUEventDispatcher.h"
12#include "IMUDevice.h"
13#include "IMUState.h"
14
15namespace IMU
16{
18 {
19 public:
20 CIMUDeducedReckoning(const bool IsVerbose);
22
23 inline const float*
28
29 inline const float*
31 {
32 return m_MagneticRotation;
33 }
34
35 inline const float*
37 {
39 }
40
41 inline const float*
43 {
44 return m_Accelaration;
45 }
46
47 protected:
48 void OnIMUEvent(const CIMUEvent& Event) override;
49
50 void OnIMUStart(const timeval& TimeStamp, const CIMUDevice* pIMUDevice);
51 void OnIMUStop(const timeval& TimeStamp, const CIMUDevice* pIMUDevice);
52 void OnIMUFusedCycle(const timeval& TimeStamp, const CIMUDevice* pIMUDevice);
53 void OnIMUCycle(const timeval& TimeStamp, const CIMUDevice* pIMUDevice);
54 void OnIMUIntegratedState(const timeval& TimeStamp, const CIMUDevice* pIMUDevice);
55 void OnIMUCustomEvent(const CIMUEvent& CustomEvent);
56
57 const bool m_IsVerbose;
58 const float m_G;
59
64 };
65} // namespace IMU
const float * GetGyroscopeRotation() const
const float * GetOrientationQuaternion() const
const float * GetMagneticRotation() const
const float * GetAccelaration() const
void OnIMUCustomEvent(const CIMUEvent &CustomEvent)
CIMUDeducedReckoning(const bool IsVerbose)
~CIMUDeducedReckoning() override
void OnIMUEvent(const CIMUEvent &Event) override
void OnIMUCycle(const timeval &TimeStamp, const CIMUDevice *pIMUDevice)
void OnIMUIntegratedState(const timeval &TimeStamp, const CIMUDevice *pIMUDevice)
void OnIMUStart(const timeval &TimeStamp, const CIMUDevice *pIMUDevice)
void OnIMUStop(const timeval &TimeStamp, const CIMUDevice *pIMUDevice)
void OnIMUFusedCycle(const timeval &TimeStamp, const CIMUDevice *pIMUDevice)
This class contains the the devices module and the thread for read the measurements.
Definition IMUDevice.h:42
IIMUEventDispatcher(CIMUDevice *pIMUDevice)