mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 21:46:33 +00:00
15 lines
266 B
C++
15 lines
266 B
C++
#pragma once
|
|
|
|
#include <QByteArray>
|
|
#include <cstdint>
|
|
|
|
|
|
class AiEngineGimbalServerCrc16
|
|
{
|
|
public:
|
|
static void getCRCBytes(const QByteArray &data, int8_t *bytes);
|
|
|
|
private:
|
|
static uint16_t calculateCRC(const uint8_t *ptr, uint32_t len, uint16_t crcInit);
|
|
};
|