mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 22:06:34 +00:00
28 lines
684 B
C++
28 lines
684 B
C++
/**
|
|
* 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;
|
|
};
|