dji_telemetry.hpp File Reference

Enumeration of all telemetry data types, structures and maps. More...

#include "dji_type.hpp"
Include dependency graph for dji_telemetry.hpp:

Go to the source code of this file.

Classes

struct  DJI::OSDK::Telemetry::TopicInfo
 struct for TopicInfo data used to subscribe packages from the FC More...
 
struct  DJI::OSDK::Telemetry::Quaternion
 struct for TOPIC_QUATERNION More...
 
struct  DJI::OSDK::Telemetry::Vector3f
 struct for multiple Topics More...
 
struct  DJI::OSDK::Telemetry::Vector3d
 struct for multiple Topics More...
 
struct  DJI::OSDK::Telemetry::TimeStamp
 struct for data broadcast, timestamp from local cache More...
 
struct  DJI::OSDK::Telemetry::SyncStamp
 struct for data broadcast, software sync timestamp from local cache More...
 
struct  DJI::OSDK::Telemetry::VelocityInfo
 struct indicates the signal level of GPS velocity info
More...
 
struct  DJI::OSDK::Telemetry::Velocity
 struct for TOPIC_VELOCITY More...
 
struct  DJI::OSDK::Telemetry::GlobalPosition
 struct for data broadcast, return GPS data More...
 
struct  DJI::OSDK::Telemetry::GPSFused
 struct for TOPIC_GPS_FUSED More...
 
struct  DJI::OSDK::Telemetry::RelativePosition
 struct for data broadcast and subscription, return obstacle info around the vehicle More...
 
struct  DJI::OSDK::Telemetry::PositionTimeStamp
 Timestamp for GPS and RTK. More...
 
struct  DJI::OSDK::Telemetry::PositionData
 struct for TOPIC_RTK_POSITION and sub struct for RTK of data broadcast More...
 
struct  DJI::OSDK::Telemetry::HomeLocationData
 struct for TOPIC_HOME_POINT_INFO More...
 
struct  DJI::OSDK::Telemetry::HomeLocationSetStatus
 struct for TOPIC_HOME_POINT_SET_STATUS More...
 
struct  DJI::OSDK::Telemetry::GPSDetail
 struct for TOPIC_GPS_DETAILS and sub struct for GPSInfo of data broadcast More...
 
struct  DJI::OSDK::Telemetry::GPSInfo
 struct for GPSInfo of data broadcast More...
 
struct  DJI::OSDK::Telemetry::PositionFrame
 sub struct for RTK of data broadcast More...
 
struct  DJI::OSDK::Telemetry::RTK
 struct for data broadcast, return RTK info More...
 
struct  DJI::OSDK::Telemetry::Mag
 struct for data broadcast, return magnetometer reading More...
 
struct  DJI::OSDK::Telemetry::Compass
 struct for data broadcast, return compass reading More...
 
struct  DJI::OSDK::Telemetry::RC
 struct for data broadcast and data subscription, return RC reading More...
 
struct  DJI::OSDK::Telemetry::GimbalStatus
 struct for TOPIC_GIMBAL_STATUS More...
 
struct  DJI::OSDK::Telemetry::Gimbal
 struct for data broadcast, return gimbal angle More...
 
struct  DJI::OSDK::Telemetry::Status
 struct for data broadcast, return flight status More...
 
struct  DJI::OSDK::Telemetry::Battery
 struct for TOPIC_BATTERY_INFO and data broadcast, return battery status More...
 
struct  DJI::OSDK::Telemetry::SDKInfo
 struct for TOPIC_CONTROL_DEVICE and data broadcast, return SDK info More...
 
struct  DJI::OSDK::Telemetry::SyncTimestamp
 sub struct for TOPIC_HARD_SYNC More...
 
struct  DJI::OSDK::Telemetry::HardSyncData
 struct for TOPIC_HARD_SYNC More...
 
struct  DJI::OSDK::Telemetry::RTKConnectStatus
 struct indicating RTK GPS Connection More...
 
struct  DJI::OSDK::Telemetry::RCWithFlagData
 struct for TOPIC_RC_WITH_FLAG_DATA More...
 
struct  DJI::OSDK::Telemetry::ESCStatusIndividual
 struct for status of each individual esc More...
 
struct  DJI::OSDK::Telemetry::EscData
 struct for TOPIC_ESC_DATA More...
 
struct  DJI::OSDK::Telemetry::LB2RcFullRawData
 struct for the light bridge 2 part of TOPIC_RC_FULL_RAW_DATA More...
 
struct  DJI::OSDK::Telemetry::SBUSFullRawData
 struct for the sbus part of TOPIC_RC_FULL_RAW_DATA More...
 
union  DJI::OSDK::Telemetry::RCFullRawData
 union for TOPIC_RC_FULL_RAW_DATA Only support A3/N3/M600 More...
 
struct  DJI::OSDK::Telemetry::GimbalDualData
 struct for TOPIC_DUAL_GIMBAL_DATA More...
 
struct  DJI::OSDK::Telemetry::GimbalThreeData
 struct for TOPIC_THREE_GIMBAL_DATA More...
 
struct  DJI::OSDK::Telemetry::FlightAnomaly
 struct for TOPIC_FLIGHT_ANOMALY More...
 
struct  DJI::OSDK::Telemetry::LocalPositionVO
 struct for TOPIC_POSITION_VO More...
 
struct  DJI::OSDK::Telemetry::LegacyTimeStamp
 Matrice 100 Timestamp data, available in Broadcast telemetry (only for M100) More...
 
struct  DJI::OSDK::Telemetry::LegacyVelocity
 Matrice 100 Velocity struct, returned in Broadcast telemetry (only for M100) More...
 
struct  DJI::OSDK::Telemetry::LegacyGPSInfo
 struct for GPSInfo of data broadcast More...
 
struct  DJI::OSDK::Telemetry::TypeMap< T >
 template struct maps a topic name to the corresponding data type More...
 

Namespaces

 DJI
 
 DJI::OSDK
 
 DJI::OSDK::Telemetry
 This namespace encapsulates all available telemetry topics through either Broadcast or Subscribe.
 

Macros

#define MAX_ESC_NUM   8
 
#define SDK_LB2_CHANNEL_NUM   (sizeof(LB2RcFullRawData)/sizeof(int16_t))
 
#define SDK_SBUS_CHANNEL_NUM   (16)
 
#define SDK_M210_GIMBAL_MAX_NUM   2
 
#define SDK_M300_GIMBAL_MAX_NUM   3
 

Typedefs

typedef struct DJI::OSDK::Telemetry::Quaternion DJI::OSDK::Telemetry::Quaternion
 struct for TOPIC_QUATERNION
 
typedef struct DJI::OSDK::Telemetry::Vector3f DJI::OSDK::Telemetry::Vector3f
 struct for multiple Topics
 
typedef struct DJI::OSDK::Telemetry::Vector3d DJI::OSDK::Telemetry::Vector3d
 struct for multiple Topics More...
 
typedef struct DJI::OSDK::Telemetry::TimeStamp DJI::OSDK::Telemetry::TimeStamp
 struct for data broadcast, timestamp from local cache More...
 
typedef struct DJI::OSDK::Telemetry::SyncStamp DJI::OSDK::Telemetry::SyncStamp
 struct for data broadcast, software sync timestamp from local cache More...
 
typedef struct DJI::OSDK::Telemetry::VelocityInfo DJI::OSDK::Telemetry::VelocityInfo
 struct indicates the signal level of GPS velocity info
More...
 
typedef struct DJI::OSDK::Telemetry::Velocity DJI::OSDK::Telemetry::Velocity
 struct for TOPIC_VELOCITY More...
 
typedef struct DJI::OSDK::Telemetry::GlobalPosition DJI::OSDK::Telemetry::GlobalPosition
 struct for data broadcast, return GPS data More...
 
typedef struct DJI::OSDK::Telemetry::GPSFused DJI::OSDK::Telemetry::GPSFused
 struct for TOPIC_GPS_FUSED More...
 
typedef struct DJI::OSDK::Telemetry::RelativePosition DJI::OSDK::Telemetry::RelativePosition
 struct for data broadcast and subscription, return obstacle info around the vehicle More...
 
typedef struct DJI::OSDK::Telemetry::PositionTimeStamp DJI::OSDK::Telemetry::PositionTimeStamp
 Timestamp for GPS and RTK. More...
 
typedef struct DJI::OSDK::Telemetry::PositionData DJI::OSDK::Telemetry::PositionData
 struct for TOPIC_RTK_POSITION and sub struct for RTK of data broadcast
 
typedef struct DJI::OSDK::Telemetry::HomeLocationData DJI::OSDK::Telemetry::HomeLocationData
 struct for TOPIC_HOME_POINT_INFO
 
typedef struct DJI::OSDK::Telemetry::HomeLocationSetStatus DJI::OSDK::Telemetry::HomeLocationSetStatus
 struct for TOPIC_HOME_POINT_SET_STATUS
 
typedef struct DJI::OSDK::Telemetry::GPSDetail DJI::OSDK::Telemetry::GPSDetail
 struct for TOPIC_GPS_DETAILS and sub struct for GPSInfo of data broadcast More...
 
typedef struct DJI::OSDK::Telemetry::GPSInfo DJI::OSDK::Telemetry::GPSInfo
 struct for GPSInfo of data broadcast More...
 
typedef struct DJI::OSDK::Telemetry::PositionFrame DJI::OSDK::Telemetry::PositionFrame
 sub struct for RTK of data broadcast
 
typedef struct DJI::OSDK::Telemetry::RTK DJI::OSDK::Telemetry::RTK
 struct for data broadcast, return RTK info More...
 
typedef struct DJI::OSDK::Telemetry::Mag DJI::OSDK::Telemetry::Mag
 struct for data broadcast, return magnetometer reading More...
 
typedef struct DJI::OSDK::Telemetry::Compass DJI::OSDK::Telemetry::Compass
 struct for data broadcast, return compass reading More...
 
typedef struct DJI::OSDK::Telemetry::RC DJI::OSDK::Telemetry::RC
 struct for data broadcast and data subscription, return RC reading
 
typedef struct DJI::OSDK::Telemetry::GimbalStatus DJI::OSDK::Telemetry::GimbalStatus
 struct for TOPIC_GIMBAL_STATUS
 
typedef struct DJI::OSDK::Telemetry::Gimbal DJI::OSDK::Telemetry::Gimbal
 struct for data broadcast, return gimbal angle
 
typedef struct DJI::OSDK::Telemetry::Status DJI::OSDK::Telemetry::Status
 struct for data broadcast, return flight status
 
typedef struct DJI::OSDK::Telemetry::Battery DJI::OSDK::Telemetry::Battery
 struct for TOPIC_BATTERY_INFO and data broadcast, return battery status
 
typedef struct DJI::OSDK::Telemetry::SDKInfo DJI::OSDK::Telemetry::SDKInfo
 struct for TOPIC_CONTROL_DEVICE and data broadcast, return SDK info
 
typedef struct DJI::OSDK::Telemetry::SyncTimestamp DJI::OSDK::Telemetry::SyncTimestamp
 sub struct for TOPIC_HARD_SYNC
 
typedef struct DJI::OSDK::Telemetry::HardSyncData DJI::OSDK::Telemetry::HardSyncData
 struct for TOPIC_HARD_SYNC
 
typedef struct DJI::OSDK::Telemetry::RTKConnectStatus DJI::OSDK::Telemetry::RTKConnectStatus
 struct indicating RTK GPS Connection
 
typedef struct DJI::OSDK::Telemetry::RCWithFlagData DJI::OSDK::Telemetry::RCWithFlagData
 struct for TOPIC_RC_WITH_FLAG_DATA
 
typedef struct DJI::OSDK::Telemetry::ESCStatusIndividual DJI::OSDK::Telemetry::ESCStatusIndividual
 struct for status of each individual esc
 
typedef struct DJI::OSDK::Telemetry::EscData DJI::OSDK::Telemetry::EscData
 struct for TOPIC_ESC_DATA
 
typedef struct DJI::OSDK::Telemetry::LB2RcFullRawData DJI::OSDK::Telemetry::LB2RcFullRawData
 struct for the light bridge 2 part of TOPIC_RC_FULL_RAW_DATA
 
typedef struct DJI::OSDK::Telemetry::SBUSFullRawData DJI::OSDK::Telemetry::SBUSFullRawData
 struct for the sbus part of TOPIC_RC_FULL_RAW_DATA
 
typedef uint8_t DJI::OSDK::Telemetry::GimbalControlMode
 
typedef struct DJI::OSDK::Telemetry::GimbalSingleData DJI::OSDK::Telemetry::GimbalSingleData
 
typedef struct DJI::OSDK::Telemetry::GimbalDualData DJI::OSDK::Telemetry::GimbalDualData
 struct for TOPIC_DUAL_GIMBAL_DATA
 
typedef struct DJI::OSDK::Telemetry::GimbalThreeData DJI::OSDK::Telemetry::GimbalThreeData
 struct for TOPIC_THREE_GIMBAL_DATA
 
typedef struct DJI::OSDK::Telemetry::FlightAnomaly DJI::OSDK::Telemetry::FlightAnomaly
 struct for TOPIC_FLIGHT_ANOMALY
 
typedef struct DJI::OSDK::Telemetry::LocalPositionVO DJI::OSDK::Telemetry::LocalPositionVO
 struct for TOPIC_POSITION_VO
 
typedef struct DJI::OSDK::Telemetry::LegacyTimeStamp DJI::OSDK::Telemetry::LegacyTimeStamp
 Matrice 100 Timestamp data, available in Broadcast telemetry (only for M100)
 
typedef struct DJI::OSDK::Telemetry::LegacyVelocity DJI::OSDK::Telemetry::LegacyVelocity
 Matrice 100 Velocity struct, returned in Broadcast telemetry (only for M100) More...
 
typedef uint16_t DJI::OSDK::Telemetry::EnableFlag
 
typedef uint8_t DJI::OSDK::Telemetry::LegacyStatus
 Return type for flight status data broadcast (only for M100). Returns VehicleStatus::M100FlightStatus.
 
typedef uint8_t DJI::OSDK::Telemetry::LegacyBattery
 Return type for battery data broadcast (only for M100). Returns percentage.
 
typedef struct DJI::OSDK::Telemetry::LegacyGPSInfo DJI::OSDK::Telemetry::LegacyGPSInfo
 struct for GPSInfo of data broadcast More...
 

Enumerations

enum  DJI::OSDK::Telemetry::TopicName {
  DJI::OSDK::Telemetry::TOPIC_QUATERNION,
  DJI::OSDK::Telemetry::TOPIC_ACCELERATION_GROUND,
  DJI::OSDK::Telemetry::TOPIC_ACCELERATION_BODY,
  DJI::OSDK::Telemetry::TOPIC_ACCELERATION_RAW,
  DJI::OSDK::Telemetry::TOPIC_VELOCITY,
  DJI::OSDK::Telemetry::TOPIC_ANGULAR_RATE_FUSIONED,
  DJI::OSDK::Telemetry::TOPIC_ANGULAR_RATE_RAW,
  DJI::OSDK::Telemetry::TOPIC_ALTITUDE_FUSIONED,
  DJI::OSDK::Telemetry::TOPIC_ALTITUDE_BAROMETER,
  DJI::OSDK::Telemetry::TOPIC_ALTITUDE_OF_HOMEPOINT,
  DJI::OSDK::Telemetry::TOPIC_HEIGHT_FUSION,
  DJI::OSDK::Telemetry::TOPIC_GPS_FUSED,
  DJI::OSDK::Telemetry::TOPIC_GPS_DATE,
  DJI::OSDK::Telemetry::TOPIC_GPS_TIME,
  DJI::OSDK::Telemetry::TOPIC_GPS_POSITION,
  DJI::OSDK::Telemetry::TOPIC_GPS_VELOCITY,
  DJI::OSDK::Telemetry::TOPIC_GPS_DETAILS,
  DJI::OSDK::Telemetry::TOPIC_RTK_POSITION,
  DJI::OSDK::Telemetry::TOPIC_RTK_VELOCITY,
  DJI::OSDK::Telemetry::TOPIC_RTK_YAW,
  DJI::OSDK::Telemetry::TOPIC_RTK_POSITION_INFO,
  DJI::OSDK::Telemetry::TOPIC_RTK_YAW_INFO,
  DJI::OSDK::Telemetry::TOPIC_COMPASS,
  DJI::OSDK::Telemetry::TOPIC_RC,
  DJI::OSDK::Telemetry::TOPIC_GIMBAL_ANGLES,
  DJI::OSDK::Telemetry::TOPIC_GIMBAL_STATUS,
  DJI::OSDK::Telemetry::TOPIC_STATUS_FLIGHT,
  DJI::OSDK::Telemetry::TOPIC_STATUS_DISPLAYMODE,
  DJI::OSDK::Telemetry::TOPIC_STATUS_LANDINGGEAR,
  DJI::OSDK::Telemetry::TOPIC_STATUS_MOTOR_START_ERROR,
  DJI::OSDK::Telemetry::TOPIC_BATTERY_INFO,
  DJI::OSDK::Telemetry::TOPIC_CONTROL_DEVICE,
  DJI::OSDK::Telemetry::TOPIC_HARD_SYNC,
  DJI::OSDK::Telemetry::TOPIC_GPS_SIGNAL_LEVEL,
  DJI::OSDK::Telemetry::TOPIC_GPS_CONTROL_LEVEL,
  DJI::OSDK::Telemetry::TOPIC_RC_FULL_RAW_DATA,
  DJI::OSDK::Telemetry::TOPIC_RC_WITH_FLAG_DATA,
  DJI::OSDK::Telemetry::TOPIC_ESC_DATA,
  DJI::OSDK::Telemetry::TOPIC_RTK_CONNECT_STATUS,
  DJI::OSDK::Telemetry::TOPIC_GIMBAL_CONTROL_MODE,
  DJI::OSDK::Telemetry::TOPIC_FLIGHT_ANOMALY,
  DJI::OSDK::Telemetry::TOPIC_POSITION_VO,
  DJI::OSDK::Telemetry::TOPIC_AVOID_DATA,
  DJI::OSDK::Telemetry::TOPIC_HOME_POINT_SET_STATUS,
  DJI::OSDK::Telemetry::TOPIC_HOME_POINT_INFO,
  DJI::OSDK::Telemetry::TOPIC_DUAL_GIMBAL_DATA,
  DJI::OSDK::Telemetry::TOPIC_THREE_GIMBAL_DATA,
  TOTAL_TOPIC_NUMBER
}
 enum TopicName is the interface for user to create packages and access data It is also used as index for TopicDataBase. More...
 
enum  DJI::OSDK::Telemetry::TOPIC_UID {
  UID_QUATERNION = 0xa493281f,
  UID_ACCELERATION_GROUND = 0x8696c85b,
  UID_ACCELERATION_BODY = 0xbb17d5fe,
  UID_ACCELERATION_RAW = 0xc3503a6e,
  UID_VELOCITY = 0x18fb271d,
  UID_ANGULAR_RATE_FUSIONED = 0x3599c4be,
  UID_ANGULAR_RATE_RAW = 0x700389ee,
  UID_ALTITUDE_FUSIONED = 0x11e9c81a,
  UID_ALTITUDE_BAROMETER = 0x27396a39,
  UID_ALTITUDE_OF_HOMEPOINT = 0x252c164b,
  UID_HEIGHT_FUSION = 0x87cf419d,
  UID_GPS_FUSED = 0x4b19a8c7,
  UID_GPS_DATE = 0x598f79bc,
  UID_GPS_TIME = 0xd48912c9,
  UID_GPS_POSITION = 0x0c949e94,
  UID_GPS_VELOCITY = 0x7ac7eb80,
  UID_GPS_DETAILS = 0x81fed54e,
  UID_RTK_POSITION = 0x1df9a6b6,
  UID_RTK_VELOCITY = 0x763d13c3,
  UID_RTK_YAW = 0xf45d73fd,
  UID_RTK_POSITION_INFO = 0xda4a57b5,
  UID_RTK_YAW_INFO = 0xcb72b9e3,
  UID_HOME_POINT_SET_STATUS = 0xb5c2211f,
  UID_HOME_POINT_INFO = 0xbfe4b520,
  UID_COMPASS = 0xdf3d72b7,
  UID_RC = 0x739f7fe4,
  UID_GIMBAL_ANGLES = 0x01f71678,
  UID_GIMBAL_STATUS = 0x8b6cd45c,
  UID_STATUS_FLIGHT = 0x20cfb02a,
  UID_STATUS_DISPLAYMODE = 0x1a67d6a1,
  UID_STATUS_LANDINGGEAR = 0x772d6e22,
  UID_STATUS_MOTOR_START_ERROR = 0x3a41e909,
  UID_BATTERY_INFO = 0x69779dd9,
  UID_CONTROL_DEVICE = 0x667ba86a,
  UID_HARD_SYNC = 0xecbef06d,
  UID_GPS_SIGNAL_LEVEL = 0xa6a0395f,
  UID_GPS_CONTROL_LEVEL = 0xe30b17b0,
  UID_RC_FULL_RAW_DATA = 0x16ec4d0e,
  UID_RC_WITH_FLAG_DATA = 0xfe04cfcd,
  UID_ESC_DATA = 0xaaa0f589,
  UID_RTK_CONNECT_STATUS = 0x6f349326,
  UID_GIMBAL_CONTROL_MODE = 0x326a446d,
  UID_FLIGHT_ANOMALY = 0x0a624b4b,
  UID_POSITION_VO = 0xd3462697,
  UID_AVOID_DATA = 0xf6405daa,
  UID_DUAL_GIMBAL_FULL_DATA = 0xcfeea4fa,
  UID_THREE_GIMBAL_FULL_DATA = 0x19d374a0
}
 enum TOPIC_UID is the UID that is accepted by the FC
 

Variables

TopicInfo DJI::OSDK::Telemetry::TopicDataBase []
 

Detailed Description

Enumeration of all telemetry data types, structures and maps.

Version
4.0.0
Date
Jul 2018

@Copyright (c) 2017 DJI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.