@EXClassNullAway |
Package: | dji.common.flightcontroller.flyzone |
This class contains information about a fly zone. getFlyZoneType
should be used to understand the type of fly zone to know which information in this class is valid.
FlyZoneType getFlyZoneType() |
Package: | dji.common.flightcontroller.flyzone |
Returns the type fly zone.
FlyZoneType | The type of fly zone. |
int getFlyZoneID() |
Package: | dji.common.flightcontroller.flyzone |
Returns the fly zone's ID. This is required if unlocking a fly zone.
int | An int value. |
String getName() |
Package: | dji.common.flightcontroller.flyzone |
Returns the name of the fly zone.
String | A string instance of the name of the fly zone. |
FlyZoneReason getReason() |
Package: | dji.common.flightcontroller.flyzone |
Returns the reason of the fly zone FlyZoneReason
.
FlyZoneReason | An enum value of FlyZoneReason . |
LocationCoordinate2D getCoordinate() |
Package: | dji.common.flightcontroller.flyzone |
The coordinate of the fly zone's center. Only used for GEO and NFZ fly zones.
LocationCoordinate2D | Coordinate of fly zone center. |
double getRadius() |
Package: | dji.common.flightcontroller.flyzone |
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.
double | A double value of the radius of the fly zone in meters. |
FlyZoneShape getShape() |
Package: | dji.common.flightcontroller.flyzone |
The shape of the fly zone. This shape is only used for GEO (always cylinder) and NFZ fly zones.
FlyZoneShape | An enum value of FlyZoneShape . |
FlyZoneCategory getCategory() |
Package: | dji.common.flightcontroller.flyzone |
The category of the fly zone.
FlyZoneCategory | An enum value of FlyZoneCategory . |
SubFlyZoneInformation[] getSubFlyZones() |
Package: | dji.common.flightcontroller.flyzone |
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 FlyZoneInformation
. FlyZoneInformation
should only be used for fly zone identifying information.
SubFlyZoneInformation[] | An array of SubFlyZoneInformation objects. |
void setUnlockingEnabled(final boolean enabled, CompletionCallback callback) |
Package: | dji.common.flightcontroller.flyzone |
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 true
.
final boolean enabled | true to enable the unlocked fly zone. |
CompletionCallback callback | completion callback to receive the result. |
void getUnlockingEnabled(final CompletionCallbackWith<Boolean> callback) |
Package: | dji.common.flightcontroller.flyzone |
true
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 true
.
final CompletionCallbackWith<Boolean> callback | Completion callback that receives the execution result. |
String getStartTime() |
Package: | dji.common.flightcontroller.flyzone |
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.
String | An instance of String. |
String getEndTime() |
Package: | dji.common.flightcontroller.flyzone |
The timestamp of when the flight warning or flight restriction ends, formatted in UTC (YYYY-MM-DD hh:mm:ss).
String | A string instance of the timestamp when the flight warning or flight restriction ends. |
String getUnlockStartTime() |
Package: | dji.common.flightcontroller.flyzone |
The timestamp when the fly zone is unlocked, formatted in UTC (YYYY-MM-DD hh:mm:ss).
String | A string instance of the timestamp when the fly zone is unlocked. |
String getUnlockEndTime() |
Package: | dji.common.flightcontroller.flyzone |
The timestamp the unlocked zone expires, formatted in UTC (YYYY-MM-DD hh:mm:ss).
String | A string instance of the timestamp when the unlocked zone expires. |
@EXClassNullAway |
Package: | dji.common.flightcontroller.flyzone |
There are three types of fly zones, NFZ, GEO and Poly.
CIRCLE | The circle fly zone is a cylinder or truncated cone volume (see getShape ) with one of the four restriction levels (see getCategory ). 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. |
POLY | 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. |
UNKNOWN | The fly zone is of unknown type. |
@EXClassNullAway |
Package: | dji.common.flightcontroller.flyzone |
An enum class represents the category of fly zone.
@EXClassNullAway |
Package: | dji.common.flightcontroller.flyzone |
An enum class contains the reason for the fly zone.
@EXClassNullAway |
Package: | dji.common.flightcontroller.flyzone |
An enum class containing the shape of the fly zone.
CYLINDER | Cylinder. |
CONE | Truncated cone that has a smaller radius on the ground and larger radius in the air. |
UNKNOWN | Unknown. |
@EXClassNullAway |
Package: | dji.common.flightcontroller.flyzone |
SDK Key: | FlightControllerKey.RETURN_TO_HOME_STATE |
This enum describes whether the aircraft's route when returning to home is clear of, near, or passes through a fly zone.
{{searchCount}} Results