DJIAircraft
@interface DJIAircraft : DJIBaseProduct
This class contains the components of an aircraft.
-
Returns an instance of the aircraft’s camera.
See
DJICameraDeclaration
Objective-C
@property (readonly, nonatomic) DJICamera *_Nullable camera; -
Returns an instance of the aircraft’s flight controller.
See
DJIFlightControllerDeclaration
Objective-C
@property (readonly, nonatomic) DJIFlightController *_Nullable flightController; -
Returns an instance of the aircraft’s gimbal.
See
DJIGimbalDeclaration
Objective-C
@property (readonly, nonatomic) DJIGimbal *_Nullable gimbal; -
Returns an instance of the aircraft’s smart battery.
See
DJIBatteryDeclaration
Objective-C
@property (readonly, nonatomic) DJIBattery *_Nullable battery; -
Returns an array of aircraft’s batteries. It is used when the aircraft has multiple batteries, e.g. Matrice 600.
See
DJIBatteryDeclaration
Objective-C
@property (readonly, nonatomic) NSArray<DJIBattery *> *_Nullable batteries; -
Returns an instance of the aircraft’s remote controller.
See
DJIRemoteControllerDeclaration
Objective-C
@property (readonly, nonatomic) DJIRemoteController *_Nullable remoteController; -
Returns an instance of the aircraft’s airLink.
See
DJIAirLinkDeclaration
Objective-C
@property (readonly, nonatomic) DJIAirLink *_Nullable airLink; -
A simulated remote controller on the mobile device. It is supported only by Mavic Pro using WiFi.
See
DJIMobileRemoteControllerDeclaration
Objective-C
@property (readonly, nonatomic) DJIMobileRemoteController *_Nullable mobileRemoteController; -
Sets the aircraft’s name. The aircraft’s name should be less than 32 characters.
Declaration
Objective-C
- (void)setAircraftName:(nonnull NSString *)name withCompletion:(DJICompletionBlock)completion;Parameters
nameName to be set to the aircraft.
completionCompletion block
-
Returns the aircraft’s name.
Declaration
Objective-C
- (void)getAircraftNameWithCompletion: (nonnull void (^)(NSString *_Nonnull, NSError *_Nullable))completion;Parameters
completionRemote execution result callback block.
View on GitHub
DJIAircraft Class Reference