MissionManager class for chaining/managing missions. More...

#include <dji_mission_manager.hpp>

Public Member Functions

 MissionManager (Vehicle *vehiclePtr=0)
 
ACK::ErrorCode init (DJI_MISSION_TYPE type, int timeout, UserData missionData=0)
 init missions, could be hotpt or waypt, blocking calls More...
 
void init (DJI_MISSION_TYPE type, VehicleCallBack callback=0, UserData missionData=0)
 init missions, could be hotpt or waypt, non-blocking calls More...
 
WaypointMissiongetWaypt (int index)
 get waypt ptr from waypt container More...
 
HotpointMissiongetHotpt (int index)
 get hotpt ptr from hotpt container More...
 
void printInfo ()
 

Static Public Member Functions

static void missionCallback (Vehicle *vehiclePtr, RecvContainer recvFrame, UserData userData)
 a callback function for waypoint non-blocking calls More...
 

Public Attributes

Vehicle * vehicle
 
WaypointMissionwpMission
 
HotpointMissionhpMission
 
std::vector< WaypointMission * > wpMissionVector
 
std::vector< HotpointMission * > hpMissionVector
 

Detailed Description

MissionManager class for chaining/managing missions.

Member Function Documentation

◆ getHotpt()

HotpointMission * MissionManager::getHotpt ( int  index)

get hotpt ptr from hotpt container

Supported Platforms : M210V2, M300
Parameters
indexindex of hotpt container

◆ getWaypt()

WaypointMission * MissionManager::getWaypt ( int  index)

get waypt ptr from waypt container

Supported Platforms : M210V2
Parameters
indexindex of waypt container

◆ init() [1/2]

ACK::ErrorCode MissionManager::init ( DJI_MISSION_TYPE  type,
int  timeout,
UserData  missionData = 0 
)

init missions, could be hotpt or waypt, blocking calls

Supported Platforms : M210V2, M300(HOTPOINT Only)
Parameters
typemission type enum
timeouttimeout
missionDatainitData for the mission (void ptr)

◆ init() [2/2]

void MissionManager::init ( DJI_MISSION_TYPE  type,
VehicleCallBack  callback = 0,
UserData  missionData = 0 
)

init missions, could be hotpt or waypt, non-blocking calls

Supported Platforms : M210V2, M300(HOTPOINT Only)
Parameters
typemission type enum
callbackuser specified callback
missionDatainitData for the mission (void ptr)

◆ missionCallback()

void MissionManager::missionCallback ( Vehicle *  vehiclePtr,
RecvContainer  recvFrame,
UserData  userData 
)
static

a callback function for waypoint non-blocking calls

Parameters
recvFrameRecvContainer populated by the protocolLayer
userDatavoid ptr for user usage

◆ printInfo()

void MissionManager::printInfo ( )
Supported Platforms : M210V2, M300
print the status of the mission manager

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