31 lines
576 B
C
31 lines
576 B
C
|
#ifndef _COLLECT_DATA_
|
|||
|
#define _COLLECT_DATA_
|
|||
|
|
|||
|
#include "comm_types.h"
|
|||
|
#include "sm6ds3th.h"
|
|||
|
|
|||
|
#pragma pack(push,1)
|
|||
|
|
|||
|
// <20><><EFBFBD>ݽṹ<DDBD><E1B9B9><EFBFBD><EFBFBD>
|
|||
|
// ԭʼ<D4AD><CABC><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
#define SMPVALUE_BUFFER_LEN 40
|
|||
|
typedef struct{
|
|||
|
U_DataType XValueBuffer[SMPVALUE_BUFFER_LEN];
|
|||
|
U_DataType YValueBuffer[SMPVALUE_BUFFER_LEN];
|
|||
|
|
|||
|
U_DataType XValue;
|
|||
|
U_DataType YValue;
|
|||
|
}tagSmpValueBuffer;
|
|||
|
|
|||
|
// <20>Ƕȼ<C7B6><C8BC><EFBFBD><EFBFBD>ṹ<EFBFBD><E1B9B9>
|
|||
|
typedef struct{
|
|||
|
float Angle_X;
|
|||
|
float Angle_Y;
|
|||
|
float isReady;
|
|||
|
}tagAnlgeValue;
|
|||
|
#pragma pack(pop)
|
|||
|
extern tagAnlgeValue g_AnlgeValue;
|
|||
|
|
|||
|
void GetAngleValue();
|
|||
|
#endif
|