AUTELMission
class AUTELMission
description:The abstract base class of AUTELWaypointMission class, AUTELHotPointMission class and AUTELFollowMeMission class.
class AUTELWaypointMission
description:Waypoint mission
property waypointCount
@property(nonatomic, readonly) int waypointCount;
description:Number of waypoints in the waypoint mission, max number is 500.
property autoFlightSpeed
@property(nonatomic, assign) float autoFlightSpeed;
description:The horizontal speed of aircraft during the mission. It must be no more than 15m/s and smaller than current maxFlightSpeed. Invoke AUTELFlightLimitation.getMaxFlightHorizontalSpeedWithCompletion and setMaxFlightHorizontalSpeed:withCompletion methods to read and write maxFlightSpeed.
@property(nonatomic) AUTELNavigationMissionFinishMode finishMode;
description:Set the mode after mission finished.
property goHomeAltitude
@property (nonatomic) float goHomeAltitude;
description: Go home altitude is the relative altitdue of take off point, its default value is 30m.
property estMissionTime
@property (nonatomic, assign) double estMissionTime;
description: estMissionTime is approximation time for mission to complete.
method addWaypoint:
- (void)addWaypoint:(AUTELWaypoint*)waypoint;
description: Adds a waypoint to waypoint mission. The maximum number of waypoints is 99.
param:
waypoint: AUTELWaypoint to be added to the waypoint mission.
return:none.
method addWaypoints:
- (void)addWaypoints:(NSArray*)waypoints;
description: Adds an array of waypoints to the waypoint mission.
param:
waypoints:The array of waypoints to be added to waypoint mission.
return:none.
method removeWaypoint:
- (void)removeWaypoint:(AUTELWaypoint*)waypoint;
description: Removes a waypoint from waypoint mission.
param:
waypoint: Waypoint object to be removed.
return:none.
method removeWaypointAtIndex:
- (void)removeWaypointAtIndex:(int)index;
description: Removes a waypoint at the index of the waypoin array from waypoint mission.
param:
index:Index of waypoint to be removed from the waypoint mission from.
return:none.
method removeAllWaypoints
- (void)removeAllWaypoints;
description: Removes all waypoints from the waypoint mission.
param:none
return:none.
method getWaypointAtIndex
- (AUTELWaypoint*)getWaypointAtIndex:(int)index;
description: Gets a waypoint at the index of the waypoint array from waypoint mission.
param:
index: Index of the waypoint wanting to be retrieved from the array of waypoints in the waypoint mission.
return: Waypoint of type AUTELWaypoint if the index exists.
method waypointCount
- (int)waypointCount;
description: return waypoints number
class AUTELGen2WaypointMission
description:Waypoint mission,Inherit the AUTELWaypointMission class
method addGen2Waypoint
- (void)addGen2Waypoint:(AUTELWaypointG2 *)waypoint;
description: Add a waypoint to the waypoint mission.
param:
waypoint:The waypoint to be added to waypoint mission.
return: none
method addGen2Waypoints
- (void)addGen2Waypoints:(NSArray<AUTELWaypointG2 *>*)waypoints;
description:Adds an array of waypoints to the waypoint mission.
param:
waypoints:The array of waypoints to be added to waypoint mission.
return: none
method getGen2WaypointAtIndex
- (AUTELWaypointG2*)getGen2WaypointAtIndex:(int)index;
description: Gets a waypoint at the index of the waypoint array from waypoint mission.
param:
index:Index of the waypoint wanting to be retrieved from the array of waypoints in the waypoint mission.
return: Waypoint of type AUTELWaypoint if the index exists.
class AUTELMCWaypointMission
description:Waypoint mission,Inherit the AUTELGen2WaypointMission class
property missionId
@property (nonatomic, assign) int missionId;
description: missionId
property missionType
@property (nonatomic, assign) AUTELMissionType missionType;
description: missionType.
property poiList
@property (nonatomic, copy) NSArray<InterestPointModel *>* _Nullable poiList;
description: Collection of points of interest.
property totalTimes
@property (nonatomic, assign) int totalTimes;
description: Total flight time.
property totalDistance
@property (nonatomic, assign) int totalDistance;
description: Total flight distance.
property executeIndex
@property (nonatomic, assign) int executeIndex;
description: Index of waypoints in progress
property executePhotos
@property (nonatomic, assign) int executePhotos;
description: Number of photos taken by the mission.
property numberVertexPoints
@property (nonatomic, assign) int numberVertexPoints;
description: number of vertex coordinates.
property gridEnable
@property (nonatomic, assign) int gridEnable;
description: Double grid flag,0:disable,1:enagle
property elevationOpt
@property (nonatomic, assign) int elevationOpt;
description: Elevation optimization flag,0:disable,1:enagle
property autoAngle
@property (nonatomic, assign) int autoAngle;
description: Automatic switch of main course angle
property altitudeType
@property (nonatomic, assign) int altitudeType;
description: Waypoint height type. 0 relatively, 1 absolute
property recordMission
@property (nonatomic, assign) int recordMission;
description: record mission flag. 1 recordMission
property guid
@property (nonatomic, copy) NSString * _Nullable guid;
description: mission unique identification ID.
property missionName
@property (nonatomic, copy) NSString * _Nullable missionName;
description: mission name.
property droneLocal
@property (nonatomic, strong) AUTELCoordinate3D * _Nonnull droneLocal;
description: Aircraft takeoff coordinates.
property vertexList
@property (nonatomic, copy) NSArray<InterestPointModel *>* _Nullable vertexList;
description: Vertex Coordinate Collection.
property lostConnectAction
@property (nonatomic, assign) AUTELMissionSignalLostHandleType lostConnectAction;
description: lost connection action
property shootingType
@property (nonatomic, assign) AUTELMissionShootingType shootingType;
description: lost connection action
property imageFormat
@property (nonatomic, assign)AUTELMissionImageFormat imageFormat;
description: image format
method addGen2Waypoint
- (void)addGen2Waypoint:(AUTELWaypointMC *)waypoint;
description: Add a waypoint to the waypoint mission.
param:
waypoint:The waypoint to be added to waypoint mission.
return: none
method addGen2Waypoints
- (void)addGen2Waypoints:(NSArray<AUTELWaypointMC *>*)waypoints;
description: Adds an array of waypoints to the waypoint mission.
param:
waypoints:The array of waypoints to be added to waypoint mission.
return: none
method getGen2WaypointAtIndex
- (AUTELWaypointMC*)getGen2WaypointAtIndex:(int)index;
description: Gets a waypoint at the index of the waypoint array from waypoint mission.
param:
index:Index of the waypoint wanting to be retrieved from the array of waypoints in the waypoint mission.
return: Waypoint of type AUTELWaypoint if the index exists.
enum AUTELMissionSignalLostHandleType
description: Go Home mode upon completion of the Autopilot task
typedef NS_ENUM(int, AUTELMissionSignalLostHandleType) {
/**
* @brief Avoidance is invalid
*
*/
AUTELMissionSignalLostHandleTypeNone,
/**
* @brief Avoidance is invalid
*
*/
AUTELMissionSignalLostHandleTypeGoHome,
/**
* @brief Avoidance is invalid
*
*/
AUTELMissionSignalLostHandleTypeContinue,
};
enum AUTELMissionShootingType
description: Shooting Mode
typedef NS_ENUM(int, AUTELMissionShootingType) {
/**
* @brief Avoidance is invalid
*
*/
AUTELMissionShootingTypeNone,
/**
* @brief Avoidance is invalid
*
*/
AUTELMissionShootingTypeSunny,
/**
* @brief Avoidance is invalid
*
*/
AUTELMissionShootingTypeCloudyDay,
};