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
+12
View File
@@ -0,0 +1,12 @@
#pragma once
#include <QByteArray>
#include <cstdint>
class CRC16 {
public:
static void getCRCBytes(const QByteArray &data, uint8_t *bytes);
private:
static uint16_t calculate(const uint8_t *ptr, uint32_t len, uint16_t crcInit);
};