AUTELFlightAssistant
class AUTELFlightAssistant
@interface AUTELFlightAssistant : NSObject
describe:Get real-time vision status and send command to control vision.
property delegate
describe:vision delegate.
@property(nonatomic, weak) id<AUTELFlightAssistantDelegate> _Nullable delegate;
method getAllSettingWithCompletion
- (void)getAllSettingWithCompletion:(AUTELCompletionBlock)block;
describe:get all setting with completion
Input parameters:
block:AUTELCompletionBlock,Completion block .
method getCollisionAvoidanceEnableWithCompletion
- (void)getCollisionAvoidanceEnableWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:get collision avoidance enable
Input parameters:
block:Completion block. This block includes 2 parameters. One is the collision avoidance switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setCollisionAvoidanceEnable:withCompletion
- (void)setCollisionAvoidanceEnable:(BOOL)enable
withCompletion:(AUTELCompletionBlock)block;
describe:set collision avoidance enable
Input parameters:
enable:YES: enable collision avoidance. NO: disable collision avoidance.
block:AUTELCompletionBlock,Completion block .
method getSOAEnableWithCompletion
- (void)getSOAEnableWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:get SOA enable, SOA:Visual obstacle avoidance.
Input parameters:
block:Completion block. This block includes 2 parameters. One is the SOA switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setSOAEnable:withCompletion
- (void)setSOAEnable:(BOOL)enable
withCompletion:(AUTELCompletionBlock)block;
describe:set SOA enable, SOA:Visual obstacle avoidance.
Input parameters:
enable:YES: enable SOA. NO: disable SOA.
block:AUTELCompletionBlock,Completion block .
method getRetreatEnableWithCompletion
- (void)getRetreatEnableWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:query Backward enable when intelligent tracking
Input parameters:
block:Completion block. This block includes 2 parameters. One is the Backward switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setRetreatEnable:withCompletion
- (void)setRetreatEnable:(BOOL)enable withCompletion:(AUTELCompletionBlock)block;
describe:set Backward enable when intelligent tracking
Input parameters:
enable:YES: enable Backward. NO: disable Backward.
block:AUTELCompletionBlock,Completion block .
method getAvoidanceWhileTrackEnableWithCompletion
- (void)getAvoidanceWhileTrackEnableWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:Query whether obstacle avoidance is enabled when intelligent tracking
Input parameters:
block:Completion block. This block includes 2 parameters. One is the obstacle avoidance switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setAvoidanceWhileTrackEnable:withCompletion
- (void)setAvoidanceWhileTrackEnable:(BOOL)enable
withCompletion:(AUTELCompletionBlock)block;
describe:Set obstacle avoidance enable when intelligent tracking
Input parameters:
enable:YES: enable obstacle avoidance. NO: disable obstacle avoidance.
block:AUTELCompletionBlock,Completion block .
method getReportObstaclesDetectionEnableWithCompletion
- (void)getReportObstaclesDetectionEnableWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:Query obstacle detection enable
Input parameters:
block:Completion block. This block includes 2 parameters. One is the obstacle detection switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setReportObstaclesDetectionEnable:withCompletion
- (void)setReportObstaclesDetectionEnable:(BOOL)enable
withCompletion:(AUTELCompletionBlock)block;
describe:Set obstacle detection enable
Input parameters:
enable:YES: enable obstacle detection. NO: disable obstacle detection.
block:AUTELCompletionBlock,Completion block .
method getVisionAssistedPositioningEnabledWithCompletion
- (void)getVisionAssistedPositioningEnabledWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:Query visual positioning enable
Input parameters:
block:Completion block. This block includes 2 parameters. One is the visual positioning switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setVisionAssistedPositioningEnabled:withCompletion
- (void)setVisionAssistedPositioningEnabled:(BOOL)enable
withCompletion:(AUTELCompletionBlock)block;
describe:Set visual positioning enable
Input parameters:
enable:YES: enable visual positioning. NO: disable visual positioning.
block:AUTELCompletionBlock,Completion block .
method getLandingProtectionEnabledWithCompletion
- (void)getLandingProtectionEnabledWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:Query landing protection enable
Input parameters:
block:Completion block. This block includes 2 parameters. One is the landing protection switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setLandingProtectionEnabled:withCompletion
- (void)setLandingProtectionEnabled:(BOOL)enable
withCompletion:(AUTELCompletionBlock)block;
describe:Set landing protection enable
Input parameters:
enable:YES: enable landing protection. NO: disable landing protection.
block:AUTELCompletionBlock,Completion block .
method getPrecisionLandingEnabledWithCompletion
- (void)getPrecisionLandingEnabledWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:Query accurate landing enable
Input parameters:
block:Completion block. This block includes 2 parameters. One is the accurate landing switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setPrecisionLandingEnabled:withCompletion
- (void)setPrecisionLandingEnabled:(BOOL)enable
withCompletion:(AUTELCompletionBlock)block;
describe:Set accurate landing enable
Input parameters:
enable:YES: enable accurate landing. NO: disable accurate landing.
block:AUTELCompletionBlock,Completion block .
method setTrackZoomValue:withCompletion
- (void)setTrackZoomValue:(int32_t)value withCompletion:(AUTELCompletionBlock)block;
describe:Set Intelligent tracking Zoom adjustment value ,The parameter must be+10 or - 10.
Input parameters:
value:The parameter must be+10 or - 10.
block:AUTELCompletionBlock,Completion block .
method setTrackSpeedMode:withCompletion
- (void)setTrackSpeedMode:(AUTELTrackSpeedMode)model withCompletion:(AUTELCompletionBlock)block;
describe:Set intelligent tracking speed,0:low speed mode,1:High speed mode
Input parameters:
model:AUTELTrackSpeedMode,0:low speed mode,1:High speed mode
block:AUTELCompletionBlock,Completion block .
method getHorizontalBypassWhileViewpointEnableWithCompletion
- (void)getHorizontalBypassWhileViewpointEnableWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:Query the left and right detours during Viewpoint flight .
Viewpoint flight:Determine a point on the visual screen, and then fly to this point
Input parameters:
block:Completion block. This block includes 2 parameters. One is the left and right detours switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setHorizontalBypassWhileViewpointEnable:withCompletion
- (void)setHorizontalBypassWhileViewpointEnable:(BOOL)enable withCompletion:(AUTELCompletionBlock)block;
describe:Set the left and right detours during Viewpoint flight .
Viewpoint flight:Determine a point on the visual screen, and then fly to this point
Input parameters:
enable:YES: enable the left and right detours. NO: disable the left and right detours.
block:AUTELCompletionBlock,Completion block .
method getGoHomeAvoidanceEnableWithCompletion
- (void)getGoHomeAvoidanceEnableWithCompletion:(void (^_Nullable)(BOOL enable, NSError *_Nullable error))block;
describe:Query Obstacle avoidance enable during return voyage
Input parameters:
block:Completion block. This block includes 2 parameters. One is the Obstacle avoidance enable switch, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setGoHomeAvoidanceEnable:withCompletion
- (void)setGoHomeAvoidanceEnable:(BOOL)enable withCompletion:(AUTELCompletionBlock)block;
describe:Set Obstacle avoidance enable during return voyage
Input parameters:
enable:YES: enable Obstacle avoidance. NO: disable Obstacle avoidance.
block:AUTELCompletionBlock,Completion block .
method forceLandingWithCompletion
- (void)forceLandingWithCompletion:(AUTELCompletionBlock)block;
describe:force landing
Input parameters:
block:AUTELCompletionBlock,Completion block .
method getBottomLedControlModeWithCompletion
- (void)getBottomLedControlModeWithCompletion:(void (^_Nullable)(uint8_t enable, NSError *_Nullable error))block;
describe:Query the status of the LED switch at the bottom of the aircraft
Input parameters:
block:Completion block. This block includes 2 parameters. One is the LED switch at the bottom of the aircraft, another one is error which indicates error message. Error retuns nil if this function applies successfully.
method setBottomLedControlMode:withCompletion
- (void)setBottomLedControlMode:(uint8_t)enable withCompletion:(AUTELCompletionBlock)block;
describe:Set the status of the LED switch at the bottom of the aircraft
Input parameters:
enable:YES: open. NO: close.
block:AUTELCompletionBlock,Completion block .
enum AUTELTrackSpeedMode
typedef NS_ENUM(NSInteger, AUTELTrackSpeedMode) {
/**
* @brief no bypass
*
* low speed mode
*/
AUTELTrackSpeedModeLow = 0,
/**
* @brief high speed mode
*
*/
AUTELTrackSpeedModeHigh,
};
describe:intelligent tracking speed mode,0:low speed mode,1:High speed mode