DJI::OSDK::MissionManager Class Reference
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... | |
WaypointMission * | getWaypt (int index) |
get waypt ptr from waypt container More... | |
HotpointMission * | getHotpt (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 |
WaypointMission * | wpMission |
HotpointMission * | hpMission |
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
-
index index of hotpt container
◆ getWaypt()
WaypointMission * MissionManager::getWaypt | ( | int | index | ) |
get waypt ptr from waypt container
- Supported Platforms : M210V2
- Parameters
-
index index 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
-
type mission type enum timeout timeout missionData initData 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
-
type mission type enum callback user specified callback missionData initData for the mission (void ptr)
◆ missionCallback()
|
static |
a callback function for waypoint non-blocking calls
- Parameters
-
recvFrame RecvContainer populated by the protocolLayer userData void 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:
- osdk-core/api/inc/dji_mission_manager.hpp
- osdk-core/api/src/dji_mission_manager.cpp