32 #ifndef DJIOSDK_WAYPOINT_V2_SAMPLE_HPP 33 #define DJIOSDK_WAYPOINT_V2_SAMPLE_HPP 38 #include <condition_variable> 45 #include <dji_linux_helpers.hpp> 46 const int DEFAULT_PACKAGE_INDEX = 0;
47 class WaypointV2MissionSample {
50 WaypointV2MissionSample(Vehicle *vehicle);
52 ~WaypointV2MissionSample();
123 void getGlobalCruiseSpeed(
int timeout);
138 bool setUpSubscription(
int timeout);
145 bool teardownSubscription(
const int pkgIndex,
153 void setWaypointV2Defaults(
WaypointV2& waypointV2);
162 std::vector<WaypointV2> generatePolygonWaypoints(float32_t radius, uint16_t polygonNum);
170 std::vector<DJIWaypointV2Action> generateWaypointActions(uint16_t actionNum);
174 std::vector<DJIWaypointV2Action> actions;
177 #endif // DJIOSDK_WAYPOINT_V2_SAMPLE_HPP int64_t ErrorCodeType
Unified error type.
Definition: dji_error.hpp:144
Definition: dji_mission_type.hpp:1014
Implementation of GPS Waypoint Missions for DJI OSDK.
Vehicle API for DJI onboardSDK library.
float32_t GlobalCruiseSpeed
Definition: dji_mission_type.hpp:704