Added server side code.

This commit is contained in:
Nffj84
2024-07-25 17:49:30 +03:00
parent 8e88cb6fe1
commit 147213cec6
15 changed files with 951 additions and 11 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 AiEngineGimbalServerSerialCommand : public QObject
{
Q_OBJECT
public:
explicit AiEngineGimbalServerSerialCommand(QObject *parent = nullptr);
public:
QByteArray getCommand(SERIAL_COMMAND_ID commandId);
private:
QByteArray createByteArray(const std::initializer_list<int> &bytes);
int getCommandIndex(SERIAL_COMMAND_ID commandId);
std::vector<AiEngineServerSerialCommandStructure> mSerialCommands;
};