Follow class encapsulates all follow control related functions provided by the DJI OnboardSDK.
More...
#include <DJI_Follow.h>
|
enum | MODE { MODE_RELATIVE = 0,
MODE_ROUTE = 1,
MODE_SMART = 2
} |
|
enum | YAW_TYPE { YAW_TOTARGET = 0,
YAW_CUSTOM = 1
} |
|
enum | SENSITIVITY { SENSE_LOW = 0,
SENSE_MID = 1,
SENSE_HIGH = 2
} |
|
|
| Follow (CoreAPI *ControlAPI=0) |
|
void | resetData () |
|
void | start (FollowData *Data=0, CallBack callback=0, UserData userData=0) |
|
void | stop (CallBack callback=0, UserData userData=0) |
|
void | pause (bool isPause, CallBack callback=0, UserData userData=0) |
|
void | updateTarget (FollowTarget target) |
|
void | updateTarget (float64_t latitude, float64_t longitude, uint16_t height, uint16_t angle) |
|
void | setData (const FollowData &value) |
|
void | setMode (const MODE mode) |
|
void | setTarget (FollowTarget target) |
|
void | setYawType (const YAW_TYPE type) |
|
void | setSensitivity (const SENSITIVITY sense) |
|
FollowData | getData () const |
|
Follow class encapsulates all follow control related functions provided by the DJI OnboardSDK.
Enumerator |
---|
MODE_SMART |
- Note
- Flight control not support now
|
Enumerator |
---|
SENSE_MID |
- Note
- Flight control not support now
|
void Follow::pause |
( |
bool |
isPause, |
|
|
CallBack |
callback = 0 , |
|
|
UserData |
userData = 0 |
|
) |
| |
- Note
- true for pause, false for resume
void Follow::updateTarget |
( |
float64_t |
latitude, |
|
|
float64_t |
longitude, |
|
|
uint16_t |
height, |
|
|
uint16_t |
angle |
|
) |
| |
The documentation for this class was generated from the following files: