Public Types | Public Member Functions | Private Attributes
DJI::onboardSDK::Follow Class Reference

Follow class encapsulates all follow control related functions provided by the DJI OnboardSDK. More...

#include <DJI_Follow.h>

List of all members.

Public Types

enum  MODE { MODE_RELATIVE = 0, MODE_ROUTE = 1, MODE_SMART = 2 }
enum  SENSITIVITY { SENSE_LOW = 0, SENSE_MID = 1, SENSE_HIGH = 2 }
enum  YAW_TYPE { YAW_TOTARGET = 0, YAW_CUSTOM = 1 }

Public Member Functions

 Follow (CoreAPI *ControlAPI=0)
FollowData getData () const
void pause (bool isPause, CallBack callback=0, UserData userData=0)
MissionACK pause (bool isPause, int timer)
void resetData ()
void setData (const FollowData &value)
void setMode (const MODE mode)
void setSensitivity (const SENSITIVITY sense)
void setTarget (FollowTarget target)
void setYawType (const YAW_TYPE type)
void start (FollowData *Data=0, CallBack callback=0, UserData userData=0)
MissionACK start (FollowData *Data, int timeout)
void stop (CallBack callback=0, UserData userData=0)
MissionACK stop (int timer)
void updateTarget (FollowTarget target)
void updateTarget (float64_t latitude, float64_t longitude, uint16_t height, uint16_t angle)

Private Attributes

CoreAPIapi
FollowData followData

Detailed Description

Follow class encapsulates all follow control related functions provided by the DJI OnboardSDK.

Definition at line 43 of file DJI_Follow.h.


Member Enumeration Documentation

Enumerator:
MODE_RELATIVE 
MODE_ROUTE 
MODE_SMART 
Note:
Flight control not support now

Definition at line 46 of file DJI_Follow.h.

Enumerator:
SENSE_LOW 
SENSE_MID 
Note:
Flight control not support now
SENSE_HIGH 

Definition at line 59 of file DJI_Follow.h.

Enumerator:
YAW_TOTARGET 
YAW_CUSTOM 

Definition at line 53 of file DJI_Follow.h.


Constructor & Destructor Documentation

Follow::Follow ( CoreAPI ControlAPI = 0)

Definition at line 17 of file DJI_Follow.cpp.


Member Function Documentation

Definition at line 113 of file DJI_Follow.cpp.

void Follow::pause ( bool  isPause,
CallBack  callback = 0,
UserData  userData = 0 
)
Note:
true for pause, false for resume

Definition at line 78 of file DJI_Follow.cpp.

MissionACK Follow::pause ( bool  isPause,
int  timer 
)

Definition at line 85 of file DJI_Follow.cpp.

Definition at line 23 of file DJI_Follow.cpp.

void Follow::setData ( const FollowData value)
Note:
no ack command

Definition at line 115 of file DJI_Follow.cpp.

void Follow::setMode ( const MODE mode  __UNUSED)

Definition at line 117 of file DJI_Follow.cpp.

void Follow::setSensitivity ( const SENSITIVITY sense  __UNUSED)

Definition at line 127 of file DJI_Follow.cpp.

void Follow::setTarget ( FollowTarget  target)

Definition at line 123 of file DJI_Follow.cpp.

void Follow::setYawType ( const YAW_TYPE  type)

Definition at line 125 of file DJI_Follow.cpp.

void Follow::start ( FollowData Data = 0,
CallBack  callback = 0,
UserData  userData = 0 
)

Definition at line 34 of file DJI_Follow.cpp.

MissionACK Follow::start ( FollowData Data,
int  timeout 
)

Definition at line 44 of file DJI_Follow.cpp.

void Follow::stop ( CallBack  callback = 0,
UserData  userData = 0 
)

Definition at line 59 of file DJI_Follow.cpp.

MissionACK Follow::stop ( int  timer)

Definition at line 66 of file DJI_Follow.cpp.

Definition at line 97 of file DJI_Follow.cpp.

void Follow::updateTarget ( float64_t  latitude,
float64_t  longitude,
uint16_t  height,
uint16_t  angle 
)
Note:
no ack command

Definition at line 103 of file DJI_Follow.cpp.


Member Data Documentation

Definition at line 90 of file DJI_Follow.h.

Definition at line 91 of file DJI_Follow.h.


The documentation for this class was generated from the following files:


dji_sdk_lib
Author(s):
autogenerated on Thu Jun 6 2019 17:55:25