Simple program to control Siyi A8 mini gimbal

Simple program to control Siyi A8 mini (actually some other Siyi cameras too).

Receiving responce sometimes gives error when checking CRC.
This commit is contained in:
Nffj84
2024-05-26 12:56:51 +03:00
parent a8ba701138
commit 33399370f3
12 changed files with 558 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#pragma once
#include <QList>
#include <QString>
struct Command {
QByteArray command;
QString description;
};
class SerialCommand {
public:
SerialCommand();
~SerialCommand();
QByteArray createByteArray(const std::initializer_list<int> &bytes);
void printCommands(void);
QByteArray getCommand(uint8_t number);
void setExtraValues(uint8_t number);
uint8_t getCommandCount();
private:
QList<Command> mSerialCommands;
};