Onboard-SDK-ROS
Macros | Functions
DJI_Codec.h File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <memory>
#include "DJI_Type.h"

Go to the source code of this file.

Macros

#define _SDK_MAX_RECV_SIZE   (BUFFER_SIZE)
 
#define _SDK_SOF   ((unsigned char)(0xAA))
 
#define _SDK_CRC_HEAD_SIZE   (2)
 
#define _SDK_CRC_DATA_SIZE   (4)
 
#define _SDK_HEAD_DATA_LEN   (sizeof(DJI::onboardSDK::Header) - 2)
 
#define _SDK_FULL_DATA_SIZE_MIN   (sizeof(DJI::onboardSDK::Header) + _SDK_CRC_DATA_SIZE)
 
#define _SDK_U32_SET(_addr, _val)   (*((unsigned int *)(_addr)) = (_val))
 
#define _SDK_U16_SET(_addr, _val)   (*((unsigned short *)(_addr)) = (_val))
 
#define _SDK_CALC_CRC_HEAD(_msg, _len)   sdk_stream_crc16_calc((const unsigned char *)(_msg), _len)
 
#define _SDK_CALC_CRC_TAIL(_msg, _len)   sdk_stream_crc32_calc((const unsigned char *)(_msg), _len)
 

Functions

void transformTwoByte (const char *pstr, unsigned char *pdata)
 

Detailed Description

Version
3.0
Date
Dec 16, 2015

Encode functions for DJI onboardSDK library

Attention
Project configuration:
Todo:
spilt this header into 4 header files
Version
features: -*
V3.0 -* DJI-onboard-SDK for Windows,QT,STM32,ROS,Cmake -*
Date
Dec 16, 2015 -*
Author
william.wu
Version
3.0
Date
Dec 16, 2015

Mission framework for DJI onboardSDK library

Attention
Project configuration:
Version
features: -*
V3.0 -* DJI-onboard-SDK for Windows,QT,STM32,ROS,Cmake -*
Date
Dec 16, 2015 -*
Author
william.wu