第一次提交

This commit is contained in:
2023-03-22 09:47:10 +08:00
commit f713586b04
633 changed files with 266330 additions and 0 deletions

92
Source/ZZ_Types.h Normal file
View File

@ -0,0 +1,92 @@
#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;
};
};