DJI Payload SDK  1.5.3
Data Structures | Macros | Enumerations
psdk_cmdset_msg_push.h File Reference

This file defines the message push command set. More...

#include <psdk_typedef.h>
#include <psdk_core.h>

Go to the source code of this file.

Data Structures

struct  T_BandWidthMsg
 The structure defining Data Transmission Bandwidth Push contents. More...
 
struct  T_UavAttitudeMsg
 The structure defining UAV Attitude Push contents. More...
 
struct  T_BatteryInfoMsg
 The structure defining Battery Information Push contents. More...
 
struct  T_BatteryInfoAck
 The structure defining ack of Battery Information Push Command. More...
 
struct  T_GPSInfoMsg
 The structure defining GPS Information Push contents. More...
 
struct  T_baroHeightDataMsg
 The structure defining Baro Height Data Push contents. More...
 
struct  T_GpsRawDataMsg
 The structure defining GPS Raw Data Push contents. More...
 
struct  T_RtkRawDataMsg
 The structure defining RTK Raw Data Push contents. More...
 
struct  T_UavStateMsg
 The structure defining UAV State Push contents. More...
 
struct  T_AppDateTimeMsg
 The structure defining APP Time and Date Push contents. More...
 
struct  T_UtcTimestampMsg
 The structure defining UTC timestamp Push contents. More...
 
struct  T_OtherPayloadTypeMsg
 The structure defining Other Payload Type Push contents. More...
 
struct  T_OtherPayloadFocalLengthMsg
 The structure defining Other Payload Focal Length Push contents. More...
 

Macros

#define PSDK_UAV_TYPE_UNKNOWN   0
 
#define PSDK_UAV_TYPE_M200   1
 
#define PSDK_UAV_TYPE_M210   2
 
#define PSDK_UAV_TYPE_M210RTK   3
 
#define PSDK_UAV_TYPE_M600   4
 
#define PSDK_UAV_TYPE_M600PRO   5
 
#define PSDK_UAV_TYPE_M200_V2   6
 
#define PSDK_UAV_TYPE_M210_V2   7
 
#define PSDK_UAV_TYPE_M210RTK_V2   8
 
#define PSDK_UAV_TYPE_M300_RTK   9
 
#define PSDK_BASE_BAND_STATE_LINK   1
 
#define PSDK_BASE_BAND_STATE_UNLINK   0
 
#define PSDK_BATTERY_POWER_ON   0
 
#define PSDK_BATTERY_POWER_OFF   1
 
#define PSDK_PAYLOAD_POWER_OFF_NOT_READY   0
 
#define PSDK_PAYLOAD_POWER_OFF_READY   1
 
#define PSDK_MSG_PUSH_LINK_STATE_LINK   1
 
#define PSDK_MSG_PUSH_LINK_STATE_UNLINK   0
 
#define PSDK_MSG_PUSH_LINKBUSY_STATE_BUSY   1
 
#define PSDK_MSG_PUSH_LINKBUSY_STATE_NOTBUSY   0
 
#define PSDK_APP_CONNECTION_STATE_LINK   1
 
#define PSDK_APP_CONNECTION_STATE_UNLINK   0
 
#define PSDK_GPS_STATE_NO_SIGNAL   0
 
#define PSDK_GPS_STATE_WEAK_SIGNAL   1
 
#define PSDK_GPS_STATE_MEDIUM_SIGNAL   2
 
#define PSDK_GPS_STATE_GOOD_SIGNAL   3
 
#define PSDK_COMPASS_STATE_NORMAL   0
 
#define PSDK_COMPASS_STATE_ABNORMAL   1
 
#define PSDK_MOTOR_STATE_ROTATING   1
 
#define PSDK_MOTOR_STATE_UNROTATING   0
 
#define PSDK_LAND_STATE_UNKNOWN   0
 
#define PSDK_LAND_STATE_LANDED   1
 
#define PSDK_LAND_STATE_UNLANDED   2
 
#define IS_PSDK_UAV_TYPE(UAV_TYPE)
 Judge whether input value is UAV type. More...
 
#define IS_PSDK_BASE_BAND_STATE(STATE)
 Judge whether input value is base band state. More...
 
#define IS_PSDK_BATTERY_POWER_STATE(STATE)
 Judge whether input value is battery power state. More...
 
#define IS_PSDK_PAYLOAD_POWER_OFF_READY_STATE(STATE)
 Judge whether input value is payload power off ready state. More...
 
#define IS_PSDK_MSGPUSH_LINK_STATE(STATE)
 Judge whether input value is link connection state. More...
 
#define IS_PSDK_MSGPUSH_LINKBUSY_STATE(STATE)
 Judge whether input value is link busy state. More...
 
#define IS_PSDK_APP_CONNECTION_STATE(STATE)
 Judge whether input value is app connection state. More...
 
#define IS_PSDK_GPS_STATE(STATE)
 Judge whether input value is GPS signal state. More...
 
#define IS_PSDK_COMPASS_STATE(STATE)
 Judge whether input value is compass state. More...
 
#define IS_PSDK_MOTOR_STATE(STATE)
 Judge whether input value is motor rotating state. More...
 
#define IS_PSDK_LAND_STATE(STATE)
 Judge whether input value is UAV land state. More...
 

Enumerations

enum  E_PsdkDataPushCmd {
  PSDK_DATAPUSH_CMD_ID_PUSH_BANDWIDTH = 0x01,
  PSDK_DATAPUSH_CMD_ID_PUSH_ATTITUDE = 0x02,
  PSDK_DATAPUSH_CMD_ID_PUSH_BATTERY_INFO = 0x03,
  PSDK_DATAPUSH_CMD_ID_PUSH_GPS_INFO = 0x04,
  PSDK_DATAPUSH_CMD_ID_PUSH_UAV_STATE = 0x05,
  PSDK_DATAPUSH_CMD_ID_PUSH_APP_DATETIME = 0x06,
  PSDK_DATAPUSH_CMD_ID_PUSH_BARO_HEIGHT_DATA = 0x07,
  PSDK_DATAPUSH_CMD_ID_PUSH_GPS_RAW_DATA = 0x08,
  PSDK_DATAPUSH_CMD_ID_PUSH_RTK_RAW_DATA = 0x09,
  PSDK_DATAPUSH_CMD_ID_PUSH_UTC_TIMESTAMP = 0x0A,
  PSDK_DATAPUSH_CMD_ID_PUSH_OTHER_PAYLOAD_TYPE = 0x0B,
  PSDK_DATAPUSH_CMD_ID_PUSH_OTHER_PAYLOAD_FOCAL_LENGTH = 0x0C
}
 Data Push Command ID. More...
 
enum  E_PsdkDataPushPayloadType {
  PSDK_DATAPUSH_PAYLOAD_TYPE_UNKNOWN = 0,
  PSDK_DATAPUSH_PAYLOAD_TYPE_X5S = 1,
  PSDK_DATAPUSH_PAYLOAD_TYPE_Z30 = 2
}
 

Detailed Description

This file defines the message push command set.

Version
V1.5.0
Date
2019/07/31

All information contained herein is, and remains, the property of DJI. The intellectual and technical concepts contained herein are proprietary to DJI and may be covered by U.S. and foreign patents, patents in process, and protected by trade secret or copyright law. Dissemination of this information, including but not limited to data and other proprietary material(s) incorporated within the information, in any form, is strictly prohibited without the express written consent of DJI.

If you receive this source code without DJI’s authorization, you may not further disseminate the information, and you must immediately remove the source code and notify DJI of its removal. DJI reserves the right to pursue legal actions against you for any loss(es) or damage(s) caused by your failure to do so.