Changed serial connection to UDP connection.

Added ZR10 support.
Added automation to choose configuration.
This commit is contained in:
Nffj84
2024-10-14 21:18:27 +03:00
parent 2b2af3044e
commit a3d9137b77
16 changed files with 380 additions and 305 deletions
@@ -0,0 +1,24 @@
/**
* This is a serial response class for Siyi Gimbal Cameras.
* Other cameras might need their own serial response class.
*/
#pragma once
#include <QString>
#include <QByteArray>
#include <QObject>
enum MESSAGE_IDX { STX = 0, CTRL = 2, Data_len = 3, SEQ = 5, CMD_ID = 7, DATA = 8 };
class AiEngineGimbalServerUDPResponse : public QObject
{
Q_OBJECT
public:
explicit AiEngineGimbalServerUDPResponse(QObject *parent = nullptr);
public:
QHash<QString, QVariant> getResponceValues(QByteArray response);
};