IMUState.h
Go to the documentation of this file.
1/*
2 * IMUState.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 "Includes.h"
12
13namespace IMU
14{
15 struct IMUState
16 {
18 {
19 }
20
22 {
27 m_IsConsecutive(false)
28 {
29 memset(&m_TimeStamp, 0, sizeof(timeval));
30 }
31
33 unsigned short m_CurrentSampleCount;
36 timeval m_TimeStamp;
37 };
38
40 {
42 {
43 memset(m_Acceleration, 0, sizeof(float) * 3);
44 memset(m_GyroscopeRotation, 0, sizeof(float) * 3);
45 memset(m_MagneticRotation, 0, sizeof(float) * 3);
46 memset(m_QuaternionRotation, 0, sizeof(float) * 4);
47 }
48
54
55 inline void
62 };
63
66 };
67} // namespace IMU
unsigned short m_CurrentSampleCount
Definition IMUState.h:33
PhysicalData m_PhysicalData
Definition IMUState.h:65
ControlData m_ControlData
Definition IMUState.h:64