92 lines
1.6 KiB
C++
92 lines
1.6 KiB
C++
#pragma once
|
|
#include "pch.h"
|
|
|
|
namespace ZZ_DATA_DEF
|
|
{
|
|
namespace M300RTK
|
|
{
|
|
typedef struct tagVector3f
|
|
{
|
|
float x; /*!< Specifies float value of x for vector. */
|
|
float y; /*!< Specifies float value of y for vector. */
|
|
float z; /*!< Specifies float value of z for vector. */
|
|
}ZZVector3f;
|
|
|
|
typedef struct tagDegOrientation
|
|
{
|
|
float roll;
|
|
float pitch;
|
|
float yaw;
|
|
}ZZDegOrientation;
|
|
|
|
typedef struct tagQuaternion
|
|
{
|
|
float w_q0;
|
|
float x_q1;
|
|
float y_q2;
|
|
float z_q3;
|
|
}ZZQuaternion;
|
|
|
|
typedef struct tagM300RTKDataFrame
|
|
{
|
|
// ZZ_U32 usExposureTimeInMS;
|
|
// ZZ_S32 lData[4096];
|
|
// float fTemperature = 0;
|
|
// double dTimes = 0;
|
|
ZZVector3f stGPSPosition = { 0 };
|
|
ZZVector3f stVelocity = { 0 };
|
|
ZZQuaternion stQuaternion = { 0 };
|
|
|
|
}M300RTKDataFrame;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
namespace CO2_GAS_SENSOR
|
|
{
|
|
typedef struct tagGSDataFrame
|
|
{
|
|
unsigned long ulCO2;
|
|
unsigned long ulH2O;
|
|
float fTemp;
|
|
float fPB;
|
|
float fPP;
|
|
}GSDataFrame;
|
|
};
|
|
|
|
namespace UA_SENSOR
|
|
{
|
|
typedef struct tagUASDataFrame
|
|
{
|
|
float fWindSpeed;
|
|
float fWindDirection;
|
|
float fFixedWindSpeed;
|
|
float fFixedWindDirection;
|
|
}UASDataFrame;
|
|
};
|
|
|
|
namespace MainConfig
|
|
{
|
|
typedef struct tagMiscControls
|
|
{
|
|
int iPumpGPIOPort;
|
|
}MiscControls;
|
|
|
|
typedef struct tagM300RTKSettings
|
|
{
|
|
QString qstrM300RTKUDEV1;
|
|
QString qstrM300RTKUDEV2;
|
|
QString qstrM300RTKSettingsFilePath;
|
|
QString qstrM300RTKWidgetFilePath;
|
|
}M300RTKSettings;
|
|
|
|
typedef struct tagSensorPort
|
|
{
|
|
QString qstrWindSensorPort;
|
|
QString qstrGasSensorPort;
|
|
}SensorPort;
|
|
};
|
|
|
|
}; |