@interface DJIFlyZoneInformation : NSObject |
Header: | DJIFlyZoneInformation.h |
Inherits From: | NSObject |
This class contains information about a fly zone. type
should be used to understand the type of fly zone to know which information in this class is valid.
@property(nonatomic, readonly) DJIFlyZoneType type |
Header: | DJIFlyZoneInformation.h |
Returns the type fly zone.
@property(nonatomic, readonly) NSUInteger flyZoneID |
Header: | DJIFlyZoneInformation.h |
Returns the fly zone's ID. This is required if unlocking a fly zone.
@property(nonatomic, readonly) NSString* name |
Header: | DJIFlyZoneInformation.h |
The name of the fly zone.
@property(nonatomic, readonly) DJIFlyZoneReason reason |
Header: | DJIFlyZoneInformation.h |
Returns the reason of the fly zone DJIFlyZoneReason
.
@property(nonatomic, readonly) CLLocationCoordinate2D center |
Header: | DJIFlyZoneInformation.h |
The coordinate of the fly zone's center. Only used for GEO and NFZ fly zones.
@property(nonatomic, readonly) double radius |
Header: | DJIFlyZoneInformation.h |
The radius of the fly zone in meters. If the fly zone is a truncated cone, then the radius is the bottom of the cone. Only used for GEO and NFZ fly zones.
@property(nonatomic, readonly) DJIFlyZoneShape shape |
Header: | DJIFlyZoneInformation.h |
The shape of the fly zone. This shape is only used for GEO (always cylinder) and NFZ fly zones.
@property(nonatomic, readonly) DJIFlyZoneCategory category |
Header: | DJIFlyZoneInformation.h |
The category of the fly zone.
@property(nonatomic, readonly, nullable) NSArray<DJISubFlyZoneInformation *> *subFlyZones |
Header: | DJIFlyZoneInformation.h |
Information about the Sub fly zones. If empty, then the fly zone is a circle fly zone. If populated, this fly zone is a Poly fly zone and the sub fly zone information will take precedence over information in DJIFlyZoneInformation
. DJIFlyZoneInformation
should only be used for fly zone identifying information.
-(void)setUnlockingEnabled:(BOOL)enabled withCompletion:(DJICompletionBlock)completion |
Header: | DJIFlyZoneInformation.h |
Disables the unlocked fly zones. This is useful if the aircraft is shared between users. It is not supported by Inspire 1 series or Phantom 3 series. For the other products, it is supported when isCustomUnlockZoneSupported
is YES
.
BOOL enabled | YES to enable the unlocked fly zone. |
DJICompletionBlock completion | completion block to receive the result. |
-(void)getUnlockingEnabledWithCompletion:(void (^_Nonnull)(BOOL enabled, NSError *_Nullable error))completion |
Header: | DJIFlyZoneInformation.h |
YES
if the unlocked fly zone is enabled. It is not supported by Inspire 1 series or Phantom 3 series. For the other products, it is supported when isCustomUnlockZoneSupported
is YES
.
BOOL enabled | YES if the visual stabilization is enabled. |
NSError *_Nullable error | Error retrieving the value. |
void (^_Nonnull)(BOOL enabled, NSError *_Nullable error) completion | Completion block to receive the result. |
@property(nonatomic, readonly) NSString* startTime |
Header: | DJIFlyZoneInformation.h |
The timestamp of when the flight warning or flight restriction begins, formatted in UTC (yyyy-MM-dd HH:mm:ss). This is used for temporary flight restrictions. When the time is not available from the server, DJIFlyZoneInformationInvalidTimestamp
will be returned.
@property(nonatomic, readonly) NSString* endTime |
Header: | DJIFlyZoneInformation.h |
The timestamp of when the flight warning or flight restriction ends, formatted in UTC (YYYY-MM-DD hh:mm:ss). When the time is not available from the server, DJIFlyZoneInformationInvalidTimestamp
will be returned.
@property(nonatomic, readonly) NSString* unlockStartTime |
Header: | DJIFlyZoneInformation.h |
The timestamp when the fly zone is unlocked, formatted in UTC (YYYY-MM-DD hh:mm:ss). When the time is not available from the server, DJIFlyZoneInformationInvalidTimestamp
will be returned.
@property(nonatomic, readonly) NSString* unlockEndTime |
Header: | DJIFlyZoneInformation.h |
The timestamp the unlocked zone expires, formatted in UTC (YYYY-MM-DD hh:mm:ss). When the time is not available from the server, DJIFlyZoneInformationInvalidTimestamp
will be returned.
extern NSString *const DJIFlyZoneInformationInvalidTimestamp |
Header: | DJIFlyZoneInformation.h |
DJI Fly Zone Information Invalid Timestamp.
typedef NS_ENUM (uint8_t, DJIFlyZoneType) |
Header: | DJIFlyZoneInformation.h |
There are three types of fly zones, NFZ, GEO and Poly.
DJIFlyZoneTypeCircle | The circle fly zone is a cylinder or truncated cone volume (see shape ) with one of the four restriction levels (see category ). Some restrictions can be unlocked while others cannot. Some fly zones also have a 4km buffer around them where flight height is restricted to 120m. |
DJIFlyZoneTypePoly | The Poly fly zone consists of one or more sub fly zones that are cylinders or complex volumes with different height limitations. A height limitation of 0m means flight is completely restricted. This is used by Mavic, Phantom 4 Pro, Inspire 2 and Phantom 4. |
DJIFlyZoneTypeUnknown | The fly zone is of unknown type. |
typedef NS_ENUM (uint8_t, DJIFlyZoneCategory) |
Header: | DJIFlyZoneInformation.h |
An enum class represents the category of fly zone.
typedef NS_ENUM(uint8_t, DJIFlyZoneReason) |
Header: | DJIFlyZoneInformation.h |
An enum class contains the reason for the fly zone.
typedef NS_ENUM(uint8_t, DJIFlyZoneShape) |
Header: | DJIFlyZoneInformation.h |
An enum class containing the shape of the fly zone.
DJIFlyZoneShapeCylinder | Cylinder. |
DJIFlyZoneShapeCone | Truncated cone that has a smaller radius on the ground and larger radius in the air. |
DJIFlyZoneShapeUnknown | Unknown. |
typedef NS_ENUM (NSUInteger, DJIFlyZoneReturnToHomeState) |
Header: | DJIFlyZoneInformation.h |
SDK Key: | DJIFlightControllerKey.DJIFlightControllerParamReturnToHomeState |
This enum describes whether the aircraft's route when returning to home is clear of, near, or passes through a fly zone.