#include <DJI_WayPoint.h>
Public Member Functions | |
WayPointData * | getIndex () const |
WayPointData * | getIndex (size_t pos) const |
WayPointInitData | getInfo () const |
void | init (WayPointInitData *Info=0, CallBack callback=0, UserData userData=0) |
MissionACK | init (WayPointInitData *Info, int timer) |
void | pause (bool isPause, CallBack callback=0, UserData userData=0) |
MissionACK | pause (bool isPause, int timer) |
void | readIdleVelocity (CallBack callback=0, UserData userData=0) |
void | readIndexData (uint8_t index, CallBack callback=0, UserData userData=0) |
void | readInitData (CallBack callback=0, UserData userData=0) |
void | setIndex (WayPointData *value, size_t pos) |
void | setInfo (const WayPointInitData &value) |
void | start (CallBack callback=0, UserData userData=0) |
MissionACK | start (int timer) |
void | stop (CallBack callback=0, UserData userData=0) |
MissionACK | stop (int timer) |
void | updateIdleVelocity (float32_t meterPreSecond, CallBack callback=0, UserData userData=0) |
bool | uploadIndexData (WayPointData *data, CallBack callback=0, UserData userData=0) |
WayPointDataACK | uploadIndexData (WayPointData *data, int timer) |
bool | uploadIndexData (uint8_t pos, CallBack callback=0, UserData userData=0) |
WayPoint (CoreAPI *ControlAPI=0) | |
Static Public Member Functions | |
static void | idleVelocityCallback (CoreAPI *api, Header *protocolHeader, UserData wpapi) |
static void | readInitDataCallback (CoreAPI *api, Header *protocolHeader, UserData wpapi) |
static void | uploadIndexDataCallback (CoreAPI *api, Header *protocolHeader, UserData wpapi) |
Private Attributes | |
CoreAPI * | api |
WayPointData * | index |
WayPointInitData | info |
Definition at line 24 of file DJI_WayPoint.h.
WayPoint::WayPoint | ( | CoreAPI * | ControlAPI = 0 | ) |
Definition at line 20 of file DJI_WayPoint.cpp.
WayPointData * WayPoint::getIndex | ( | ) | const |
Definition at line 196 of file DJI_WayPoint.cpp.
WayPointData * WayPoint::getIndex | ( | size_t | pos | ) | const |
Definition at line 201 of file DJI_WayPoint.cpp.
WayPointInitData WayPoint::getInfo | ( | ) | const |
Definition at line 176 of file DJI_WayPoint.cpp.
void WayPoint::idleVelocityCallback | ( | CoreAPI * | api, |
Header * | protocolHeader, | ||
UserData | wpapi | ||
) | [static] |
Definition at line 206 of file DJI_WayPoint.cpp.
void WayPoint::init | ( | WayPointInitData * | Info = 0 , |
CallBack | callback = 0 , |
||
UserData | userData = 0 |
||
) |
Definition at line 34 of file DJI_WayPoint.cpp.
MissionACK WayPoint::init | ( | WayPointInitData * | Info, |
int | timer | ||
) |
Definition at line 43 of file DJI_WayPoint.cpp.
void WayPoint::pause | ( | bool | isPause, |
CallBack | callback = 0 , |
||
UserData | userData = 0 |
||
) |
Definition at line 99 of file DJI_WayPoint.cpp.
MissionACK WayPoint::pause | ( | bool | isPause, |
int | timer | ||
) |
Definition at line 107 of file DJI_WayPoint.cpp.
void WayPoint::readIdleVelocity | ( | CallBack | callback = 0 , |
UserData | userData = 0 |
||
) |
Definition at line 120 of file DJI_WayPoint.cpp.
void DJI::onboardSDK::WayPoint::readIndexData | ( | uint8_t | index, |
CallBack | callback = 0 , |
||
UserData | userData = 0 |
||
) |
void DJI::onboardSDK::WayPoint::readInitData | ( | CallBack | callback = 0 , |
UserData | userData = 0 |
||
) |
void WayPoint::readInitDataCallback | ( | CoreAPI * | api, |
Header * | protocolHeader, | ||
UserData | wpapi | ||
) | [static] |
Definition at line 225 of file DJI_WayPoint.cpp.
void WayPoint::setIndex | ( | WayPointData * | value, |
size_t | pos | ||
) |
Definition at line 262 of file DJI_WayPoint.cpp.
void WayPoint::setInfo | ( | const WayPointInitData & | value | ) |
Definition at line 181 of file DJI_WayPoint.cpp.
void WayPoint::start | ( | CallBack | callback = 0 , |
UserData | userData = 0 |
||
) |
Definition at line 57 of file DJI_WayPoint.cpp.
MissionACK WayPoint::start | ( | int | timer | ) |
Definition at line 65 of file DJI_WayPoint.cpp.
void WayPoint::stop | ( | CallBack | callback = 0 , |
UserData | userData = 0 |
||
) |
Definition at line 78 of file DJI_WayPoint.cpp.
MissionACK WayPoint::stop | ( | int | timer | ) |
Definition at line 86 of file DJI_WayPoint.cpp.
void WayPoint::updateIdleVelocity | ( | float32_t | meterPreSecond, |
CallBack | callback = 0 , |
||
UserData | userData = 0 |
||
) |
Definition at line 168 of file DJI_WayPoint.cpp.
bool WayPoint::uploadIndexData | ( | WayPointData * | data, |
CallBack | callback = 0 , |
||
UserData | userData = 0 |
||
) |
Definition at line 128 of file DJI_WayPoint.cpp.
WayPointDataACK WayPoint::uploadIndexData | ( | WayPointData * | data, |
int | timer | ||
) |
Definition at line 148 of file DJI_WayPoint.cpp.
bool WayPoint::uploadIndexData | ( | uint8_t | pos, |
CallBack | callback = 0 , |
||
UserData | userData = 0 |
||
) |
Definition at line 134 of file DJI_WayPoint.cpp.
void WayPoint::uploadIndexDataCallback | ( | CoreAPI * | api, |
Header * | protocolHeader, | ||
UserData wpapi | __UNUSED | ||
) | [static] |
Definition at line 245 of file DJI_WayPoint.cpp.
CoreAPI* DJI::onboardSDK::WayPoint::api [private] |
add uploadAllCallback
add readIndexCallback
Definition at line 66 of file DJI_WayPoint.h.
WayPointData* DJI::onboardSDK::WayPoint::index [private] |
Definition at line 68 of file DJI_WayPoint.h.
Definition at line 67 of file DJI_WayPoint.h.