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,27 @@
/**
* This is a serial command class for Siyi Gimbal Cameras.
* Other cameras might need their own serial command class.
*/
#pragma once
#include <QByteArray>
#include <QList>
#include <QObject>
#include <QString>
#include "aienginedefinitions.h"
class AiEngineGimbalServerUDPCommand : public QObject
{
Q_OBJECT
public:
explicit AiEngineGimbalServerUDPCommand(QObject *parent = nullptr);
public:
QByteArray getCommand(UDP_COMMAND_ID commandId);
private:
QByteArray createByteArray(const std::initializer_list<int> &bytes);
int getCommandIndex(UDP_COMMAND_ID commandId);
std::vector<AiEngineServerSerialCommandStructure> mSerialCommands;
};