ISF
2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
sensor_data_types.h
Go to the documentation of this file.
1
/*
2
* sensor_data_types.h
3
*
4
* Created on: Nov 26, 2014
5
* Author: B37804
6
*/
7
8
#ifndef SENSOR_DATA_TYPES_H_
9
#define SENSOR_DATA_TYPES_H_
10
11
#include "
basic_types.h
"
12
#include "
fusion_config.h
"
13
14
// gyro sensor structure definition
15
struct
PressureSensor
16
{
17
int32
iHpFast
;
// fast (typically 200Hz) height (counts)
18
int32
iHp
;
// slow (typically 25Hz) height (counts)
19
float
fHp
;
// slow (typically 25Hz) height (m)
20
float
fTp
;
// slow (typically 25Hz) temperature (C)
21
float
fmPerCount
;
// initialized to FMPERCOUNT
22
float
fCPerCount
;
// initialized to FCPERCPOUNT
23
int16
iTp
;
// slow (typically 25Hz) temperature (count)
24
int16
iTpFast
;
// fast (typically 200Hz) temperature (counts)
25
};
26
27
// accelerometer sensor structure definition
28
struct
AccelSensor
29
{
30
//float fSumGpFast[3]; // sum of fast measurements
31
float
fGpFast
[3];
// fast (typically 200Hz) readings (g)
32
float
fGp
[3];
// slow (typically 25Hz) averaged readings (g)
33
//float fgPerCount; // initialized to FGPERCOUNT
34
int16
iGpFast
[3];
// fast (typically 200Hz) readings
35
int16
iGp
[3];
// slow (typically 25Hz) averaged readings (counts)
36
};
37
38
// magnetometer sensor structure definition
39
struct
MagSensor
40
{
41
//float fSumBpFast[3]; // sum of fast measurements
42
float
fBpFast
[3];
// fast (typically 200Hz) raw readings (uT)
43
float
fBp
[3];
// slow (typically 25Hz) averaged raw readings (uT)
44
float
fBcFast
[3];
// fast (typically 200Hz) calibrated readings (uT)
45
float
fBc
[3];
// slow (typically 25Hz) averaged calibrated readings (uT)
46
//float fuTPerCount; // initialized to FUTPERCOUNT
47
//float fCountsPeruT; // initialized to FCOUNTSPERUT
48
//int16 iBpFast[3]; // fast (typically 200Hz) raw readings (counts)
49
int16
iBp
[3];
// slow (typically 25Hz) averaged raw readings (counts)
50
// unused int16 iBc[3]; // slow (typically 25Hz) averaged calibrated readings (counts)
51
};
52
53
// gyro sensor structure definition
54
struct
GyroSensor
55
{
56
float
fYpBuffer
[
GYRO_OVERSAMPLE_RATIO
][3];
// buffered fast (typically 200Hz) readings (deg/s)
57
//float fDegPerSecPerCount; // deg/s per count
58
//int16 iCountsPerDegPerSec; // counts poer deg/s
59
//int16 iYpBuffer[GYRO_OVERSAMPLE_RATIO][3]; // buffered fast (typically 200Hz) readings (counts)
60
};
61
62
// SampleData structure definition
63
struct
sensorSampleData
64
{
65
struct
PressureSensor
pressureData
;
66
struct
AccelSensor
AccelData
;
67
struct
MagSensor
magData
;
68
struct
GyroSensor
gyroData
;
69
};
70
71
#endif
/* SENSOR_DATA_TYPES_H_ */
72
PressureSensor::fCPerCount
float fCPerCount
Definition:
sensor_data_types.h:22
AccelSensor::iGp
int16 iGp[3]
Definition:
sensor_data_types.h:35
MagSensor::fBpFast
float fBpFast[3]
Definition:
sensor_data_types.h:42
PressureSensor::iHp
int32 iHp
Definition:
sensor_data_types.h:18
MagSensor::fBp
float fBp[3]
Definition:
sensor_data_types.h:43
PressureSensor::fmPerCount
float fmPerCount
Definition:
sensor_data_types.h:21
sensorSampleData::gyroData
struct GyroSensor gyroData
Definition:
sensor_data_types.h:68
PressureSensor::fTp
float fTp
Definition:
sensor_data_types.h:20
PressureSensor::iHpFast
int32 iHpFast
Definition:
sensor_data_types.h:17
AccelSensor::iGpFast
int16 iGpFast[3]
Definition:
sensor_data_types.h:34
GYRO_OVERSAMPLE_RATIO
#define GYRO_OVERSAMPLE_RATIO
Definition:
fusion_config.h:24
basic_types.h
sensorSampleData
Definition:
sensor_data_types.h:63
AccelSensor
Definition:
sensor_data_types.h:28
MagSensor
Definition:
sensor_data_types.h:39
sensorSampleData::pressureData
struct PressureSensor pressureData
Definition:
sensor_data_types.h:65
sensorSampleData::magData
struct MagSensor magData
Definition:
sensor_data_types.h:67
GyroSensor::fYpBuffer
float fYpBuffer[GYRO_OVERSAMPLE_RATIO][3]
Definition:
sensor_data_types.h:56
fusion_config.h
The fusion_config.h file contains additional static configuration for the Sensor Fusion based Virtual...
PressureSensor::fHp
float fHp
Definition:
sensor_data_types.h:19
AccelSensor::fGpFast
float fGpFast[3]
Definition:
sensor_data_types.h:31
int32
long int32
This defines int32 as long.
Definition:
isf_types.h:32
int16
short int16
This defines int16 as short.
Definition:
isf_types.h:23
MagSensor::fBc
float fBc[3]
Definition:
sensor_data_types.h:45
AccelSensor::fGp
float fGp[3]
Definition:
sensor_data_types.h:32
sensorSampleData::AccelData
struct AccelSensor AccelData
Definition:
sensor_data_types.h:66
PressureSensor::iTpFast
int16 iTpFast
Definition:
sensor_data_types.h:24
MagSensor::fBcFast
float fBcFast[3]
Definition:
sensor_data_types.h:44
GyroSensor
Definition:
sensor_data_types.h:54
MagSensor::iBp
int16 iBp[3]
Definition:
sensor_data_types.h:49
PressureSensor
Definition:
sensor_data_types.h:15
PressureSensor::iTp
int16 iTp
Definition:
sensor_data_types.h:23
© Freescale Semiconductor, Inc. 2015. All Rights Reserved.