Follow class encapsulates all follow control related functions provided by the DJI OnboardSDK. More...
#include <DJI_Follow.h>
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 | |
CoreAPI * | api |
FollowData | followData |
Follow class encapsulates all follow control related functions provided by the DJI OnboardSDK.
Definition at line 43 of file DJI_Follow.h.
MODE_RELATIVE | |
MODE_ROUTE | |
MODE_SMART |
|
Definition at line 46 of file DJI_Follow.h.
SENSE_LOW | |
SENSE_MID |
|
SENSE_HIGH |
Definition at line 59 of file DJI_Follow.h.
Definition at line 53 of file DJI_Follow.h.
Follow::Follow | ( | CoreAPI * | ControlAPI = 0 | ) |
Definition at line 17 of file DJI_Follow.cpp.
FollowData Follow::getData | ( | ) | const |
Definition at line 113 of file DJI_Follow.cpp.
void Follow::pause | ( | bool | isPause, |
CallBack | callback = 0 , |
||
UserData | userData = 0 |
||
) |
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.
void Follow::resetData | ( | ) |
Definition at line 23 of file DJI_Follow.cpp.
void Follow::setData | ( | const FollowData & | value | ) |
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.
void Follow::updateTarget | ( | FollowTarget | target | ) |
Definition at line 97 of file DJI_Follow.cpp.
void Follow::updateTarget | ( | float64_t | latitude, |
float64_t | longitude, | ||
uint16_t | height, | ||
uint16_t | angle | ||
) |
Definition at line 103 of file DJI_Follow.cpp.
CoreAPI* DJI::onboardSDK::Follow::api [private] |
Definition at line 90 of file DJI_Follow.h.
Definition at line 91 of file DJI_Follow.h.