mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 21:46:33 +00:00
33399370f3
Simple program to control Siyi A8 mini (actually some other Siyi cameras too). Receiving responce sometimes gives error when checking CRC.
24 lines
461 B
C++
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;
|
|
};
|