Files
autopilot/misc/camera/a8/serialCommand.h
T
Nffj84 33399370f3 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.
2024-05-26 12:56:51 +03:00

24 lines
461 B
C++

#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;
};