Limb Range Analyzer
Cross-platform application for human limb range analysis.
sensorcomponent.hpp
Go to the documentation of this file.
1
10#ifndef SENSORCOMPONENT_HPP
11#define SENSORCOMPONENT_HPP
12
13/*Private includes: ---------------------------------------------------------*/
14#include "../Headers/extensions.hpp"
15#include <QObject>
16#include <QtMath>
17
18/*Enumeration declarations: -------------------------------------------------*/
27enum class AxisSelection
28{
29 eUndefined = 0,
32};
33
43{
44 eDisabled = 0,
47};
48
49/*Structure declaration: ----------------------------------------------------*/
61struct SensorComponent : public QObject
62{
63 Q_OBJECT
64
65public:
73
81
82
91 void SensorComponent_SetComponent(const SensorComponent& component);
92
108 void SensorComponent_FilterSensorValues(qreal accX, qreal accY, qreal accZ, qreal gyroX, qreal gyroY, qreal gyroZ);
109
116
123
130
137
144
151
156 qint16 mRoll;
157
165
173
178 qint16 mRollMin;
179
184 qint16 mRollMax;
185
190 qint16 mPitch;
191
199
207
212 qint16 mPitchMin;
213
218 qint16 mPitchMax;
219
224 qint16 mYaw;
225
230 qint16 mMin;
231
236 qint16 mMax;
237
242 qint16 mRange;
243
249
256
263
270
277
284
293
302};
303
304#endif // SENSORCOMPONENT_HPP
ProcessingSelection
ProcessingSelection enumeration determines which 3D axis will be measured.
Definition: sensorcomponent.hpp:43
AxisSelection
AxisSelection enum depicts axis selection (roll vs. pitch) when vertical measurement is handled.
Definition: sensorcomponent.hpp:28
This structure provides data management helper for SensorModule, as well as sensor fusion filtering a...
Definition: sensorcomponent.hpp:62
qreal mFilterQ1
qreal value that depicts second quaternion filter value (real number).
Definition: sensorcomponent.hpp:262
qint16 mRoll
qint16 member that holds current ROLL value.
Definition: sensorcomponent.hpp:156
qint16 mMin
qint16 that keeps the currently reported MINIMUM value.
Definition: sensorcomponent.hpp:230
bool mStartUpsideDown
bool that in case of TRUE state means that a BlueCoin device starts measurement while upside down,...
Definition: sensorcomponent.hpp:283
qint16 mYaw
qint16 member that holds current YAW value.
Definition: sensorcomponent.hpp:224
qint16 mCurrentAngle
qint16 that keeps the currently reported ANGLE value.
Definition: sensorcomponent.hpp:248
qint16 mPitchMin
qint16 member that holds measured MINIMUM of PITCH value.
Definition: sensorcomponent.hpp:212
~SensorComponent()
Default destructor.
Definition: sensorcomponent.cpp:20
qreal mFilterQ2
qreal value that depicts third quaternion filter value (real number).
Definition: sensorcomponent.hpp:269
qint32 mAccelerometerY
qint32 value, this member is used for accelerometer Y axis value storage.
Definition: sensorcomponent.hpp:122
qint16 mRollPrevOne
qint16 member that holds first previous ROLL value.
Definition: sensorcomponent.hpp:164
qint16 mRange
qint16 that keeps the currently reported RANGE value.
Definition: sensorcomponent.hpp:242
qint16 mRollMin
qint16 member that holds measured MINIMUM of ROLL value.
Definition: sensorcomponent.hpp:178
AxisSelection mAxisSelected
AxisSelection enumeration member value that helps to recognise vertically processed measurement (by e...
Definition: sensorcomponent.hpp:292
qreal mFilterQ3
qreal value that depicts fourth quaternion filter value (real number).
Definition: sensorcomponent.hpp:276
SensorComponent()
Default constructor of struct SensorComponent.
Definition: sensorcomponent.cpp:14
qint32 mGyroscopeZ
qint32 value, this member is used for gyroscope Z axis value storage.
Definition: sensorcomponent.hpp:150
ProcessingSelection mProcessingSelected
ProcessingSelection enum member variable that specifies whether vertical or horizontal measurement is...
Definition: sensorcomponent.hpp:301
qint32 mAccelerometerZ
qint32 value, this member is used for accelerometer Z axis value storage.
Definition: sensorcomponent.hpp:129
qint32 mGyroscopeX
qint32 value, this member is used for gyroscope X axis value storage.
Definition: sensorcomponent.hpp:136
qint32 mAccelerometerX
qint32 value, this member is used for accelerometer X axis value storage.
Definition: sensorcomponent.hpp:115
qint16 mRollPrevTwo
qint16 member that holds second previous ROLL value.
Definition: sensorcomponent.hpp:172
qint16 mPitchPrevTwo
qint16 member that holds second previous PITCH value.
Definition: sensorcomponent.hpp:206
void SensorComponent_SetComponent(const SensorComponent &component)
Setter function that serves as an object copy constructor.
Definition: sensorcomponent.cpp:22
qint16 mPitchMax
qint16 member that holds measured MAXIMUM of PITCH value.
Definition: sensorcomponent.hpp:218
qint32 mGyroscopeY
qint32 value, this member is used for gyroscope Y axis value storage.
Definition: sensorcomponent.hpp:143
qint16 mPitchPrevOne
qint16 member that holds first previous PITCH value.
Definition: sensorcomponent.hpp:198
qint16 mPitch
qint16 member that holds current PITCH value.
Definition: sensorcomponent.hpp:190
qreal mFilterQ0
qreal value that depicts first quaternion filter value (real number).
Definition: sensorcomponent.hpp:255
qint16 mRollMax
qint16 member that holds measured MAXIMUM of ROLL value.
Definition: sensorcomponent.hpp:184
void SensorComponent_FilterSensorValues(qreal accX, qreal accY, qreal accZ, qreal gyroX, qreal gyroY, qreal gyroZ)
Sensor fusion struct member function.
Definition: sensorcomponent.cpp:54
qint16 mMax
qint16 that keeps the currently reported MAXIMUM value.
Definition: sensorcomponent.hpp:236