ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 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
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
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
64 {
69 };
70 
71 #endif /* SENSOR_DATA_TYPES_H_ */
72 
float fBpFast[3]
float fBp[3]
struct GyroSensor gyroData
int16 iGpFast[3]
#define GYRO_OVERSAMPLE_RATIO
Definition: fusion_config.h:24
struct PressureSensor pressureData
struct MagSensor magData
float fYpBuffer[GYRO_OVERSAMPLE_RATIO][3]
The fusion_config.h file contains additional static configuration for the Sensor Fusion based Virtual...
float fGpFast[3]
long int32
This defines int32 as long.
Definition: isf_types.h:32
short int16
This defines int16 as short.
Definition: isf_types.h:23
float fBc[3]
struct AccelSensor AccelData
float fBcFast[3]
int16 iBp[3]