first commit

This commit is contained in:
DESKTOP-4HD0KC3\ZhangZhuo
2024-10-30 15:04:53 +08:00
commit e7d6f4c57b
723 changed files with 7515585 additions and 0 deletions

View File

@ -0,0 +1,50 @@
#pragma once
#include "pch.h"
#include "ZZ_Types_DJI.h"
using namespace ZZ::Device::DJI;
class ZZ_ConfigParser_M350RTK :public QObject
{
Q_OBJECT
public:
ZZ_ConfigParser_M350RTK(QObject* parent = nullptr);
virtual ~ZZ_ConfigParser_M350RTK();
private:
bool m_bInit;
QSettings* m_pqfM350ConfigFiles[2];
AppRegInfo m_struAppRegInfo;
HardwareInfo m_struHardwareInfo;
SensorPort m_struSensorPortInfo;
public:
private:
int Initialize(QString qstrConfigFolderPath);
int LoadParams();
public:
int GetParams(AppRegInfo& struAppRegInfo, HardwareInfo& struHardwareInfo, SensorPort& struSensorPortInfo);
};
class ZZ_ConfigParser_M300RTK :public QObject
{
Q_OBJECT
public:
ZZ_ConfigParser_M300RTK(QObject* parent = nullptr);
virtual ~ZZ_ConfigParser_M300RTK();
public:
private:
bool m_bInit;
QSettings *m_pqfM300ConfigFiles[3];
AppRegInfo m_struAppRegInfo;
HardwareInfo m_struHardwareInfo;
UIConfig m_struUIConfig;
public:
int GetParams(AppRegInfo &struAppRegInfo, HardwareInfo &struHardwareInfo, UIConfig& struUIConfig);
int UpdateUIConfig(UIConfig struUIConfig);
private:
int Initialize(QString qstrConfigFolderPath);
int LoadParams();
};