mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 19:46:33 +00:00
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:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user