mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-23 00:36:35 +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,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);
|
||||
};
|
||||
Reference in New Issue
Block a user