- 将InitSystemParams功能整合到SetupSubscriptions中 - 修复Widget_M300RTK运算符错误(&改为&&) - 添加UI定时刷新功能Slot_flash_screen - 添加密码保护功能(123456) - WDA传感器添加结束符格式TODO注释 - 调整widget控件索引映射
58 lines
1.7 KiB
C++
58 lines
1.7 KiB
C++
#pragma once
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include "dji_typedef.h"
|
|
#include "dji_core.h"
|
|
#include "pch.h"
|
|
#include "dji_widget.h"
|
|
#include "ConfigParser_M300RTK.h"
|
|
using namespace std;
|
|
|
|
class ZZ_Widget_M300RTK :public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ZZ_Widget_M300RTK(QObject* parent = nullptr);
|
|
virtual ~ZZ_Widget_M300RTK();
|
|
public:
|
|
|
|
private:
|
|
QTimer m_TimerForflash;
|
|
int m_iFlagIsVehicleCapturing;
|
|
UIConfig m_struUIConfig;
|
|
short m_sFlagCaptureMode;
|
|
QString m_qstrFilePath;
|
|
static int32_t m_siDjiWidgetValueBtn, m_siDjiWidgetValueList_CaptureMode, m_siDjiWidgetValueList_SamplingRate, m_siDjiWidgetValueList_DecisionHeight;
|
|
bool m_bIsFlashOn;
|
|
public:
|
|
int PreparteEnvironment();
|
|
int SetUIFilePath(char* pcUIFilePath, uint16_t uiLength);
|
|
int UpdateCaptureStatus(int iStatus);
|
|
|
|
int GetSettings(UIConfig &struUIConfig);
|
|
int SetSettings(UIConfig struUIConfig);
|
|
void stratmessageflash();
|
|
//int UpdateCaptureStatus(int iStatus);
|
|
private:
|
|
int InitParam();
|
|
int UploadResources();
|
|
int test_UpdatePSDKFloatMessage(QString qstrMessage);
|
|
|
|
|
|
public:
|
|
static T_DjiReturnCode OnUpdateWidgetValue(E_DjiWidgetType widgetType, uint32_t index, int32_t value,void* userData);
|
|
static T_DjiReturnCode OnLoadWidgetValue (E_DjiWidgetType widgetType, uint32_t index, int32_t* value,void* userData);
|
|
public slots:
|
|
int Slot_UpdatePSDKFloatMessage(QString qstrMessage,int lineid);
|
|
void BackCommand(QString Worker, QString Command);
|
|
void Slot_flash_screen();
|
|
signals:
|
|
void Signal_UpdatePSDKFloatMessage(QString qstrMessage,int lineid);
|
|
///0:Auto 1:Manual
|
|
void Signal_UpdateCaptureMode(char cMode);
|
|
|
|
void Signal_StartCapture();
|
|
void Signal_StopCapture();
|
|
void SendCommand(QString Worker, QString Command);
|
|
};
|