Class to manage unlock fly zone, which mainly supports the following functions:
Get the notification about flying safety.
Get the fly zone around the aircraft.
Unlock the enhanced warning zone.
Unlock the authorization fly zone.
Unlock the restricted fly zone: download the licenses for the restricted fly zone, push the licenses to the aircraft, and enable or disable the licenses for the aircraft.
Add a listener for fly safety notification. Fly safety n notification information includes: tips information, return home information, warning information, serious warning information, and fly zone near the aircraft.
Gets the fly zones within 50 kilometers from the central location. Note: If there are too many fly zones obtained, drawing the fly zones on the map may cause ANR problems. It is recommended to optimize the display.
Unlock all enhanced warning fly zones. After unlocking, the aircraft will no longer prompt any enhanced warning zone, and will continue to warn after reboot the aircraft.
Unlock the authorization fly zone. After unlocking the authorization fly zone, the aircraft will be able to take off normally in the authorization fly zone. Note: M300 RTK, M350 RTK, M30 series, M3E series and other enterprise aircraft can be directly transferred to flyZoneID to unlock the authorized area, and the authorization fly zone will continue to be banned after reboot the aircraft. DJI Mini 3 and DJI Mini 3 Pro and other consumer aircraft, you need to refer to the unlocking process of the restricted fly zone. After applying for unlocking on the official website of DJI, call downloadFlyZoneLicensesFromServer and pushFlyZoneLicensesToAircraft to unlock the authorization fly zone.
Gets the licenses for restricted fly zone from the server. In order to get the unlock licenses for the relevant account, please call logInDJIUserAccount to log in to the DJI account first,
Note:
If you want to draw the restricted fly zone in the license on the map, please pass the areaID in the restricted fly zone to getFlyZonesByAreaID, then you can get the restricted fly zone information of the areaID for drawing.
Push the unlock licenses into the aircraft. MSDK will push the licenses matching the SN of the flight controller into the aircraft.
After the push is successful, you can call pullFlyZoneLicensesFromAircraft to get the list of licenses that have been pushed to the aircraft. If you need to unlock the restricted zone, you can call setFlyZoneLicensesEnabled to enable or disable the unlock licenses.
Add a listener for the fly safety database. Fly safety database information includes: database upgrade mode, database upgrade status, and manually imported database information.
Set the upgrade mode of the fly safety dynamic database. Currently, only manual import of EU GeoZone data is supported. If you want to fly your drone compliantly in the EU, please refer to the following process to import EU GeoZone data into the aircraft.
Import the fly safety dynamic database into the MSDK. Currently, only only support to import the EU GeoZone data. If you want to fly your drone compliantly in the EU, please refer to the following process to import EU GeoZone data into the aircraft.
Synchronize the fly safety dynamic database to the aircraft. Currently only support to synchronize the EU GeoZone data. If you want to fly your drone compliantly in the EU, please refer to the following process to import EU GeoZone data into the aircraft.
Event enumeration of fly safety serious warning information.
Supported since MSDK 5.3.0
Enum Members:
IN_NO_FLY_ZONE
The aircraft is in the no-fly zone. After the countdown is over, it will force an automatic drop. You will not be able to control the throttle, but you can adjust the horizontal direction to avoid obstacles.
IN_LIMIT_HEIGHT_AREA
The aircraft is in the height limit zone. After the countdown is over, it will automatically drop to the limit height, you will not be able to control the throttle, but you can adjust the horizontal direction to avoid obstacles.
IN_AUTHORIZATION_ZONE_WITHOUT_UNLOCKING
The aircraft is in the authorized area. After the countdown is over, it will automatically drop to the limit height, you will not be able to control the throttle, but you can adjust the horizontal direction to avoid obstacles.
HAVE_THREE_MIN_WILL_APPLY_TFRS
Three minutes later, a temporary restricted flight zone will take effect nearby, please pay attention to fly safety.
Type of restricted fly zone. Including airports, parks, schools, stadium, etc.
Supported since MSDK 5.3.0
Enum Members:
AIRPORT
Airport.
COMMERCIAL_AIRPORTS
Commercial airport.
PRIVATE_COMMERCIAL_AIRPORTS
Private commercial airport.
RECREATIONAL_AIRPORTS
Recreational airport.
PRIVATE_RECREATIONAL_AIRPORTS
Private recreational airport.
HELIPORT
Heliport.
UNPAVED_AIRPORT
Unpaved airport.
NATIONAL_PARKS
National park.
NOAA
NOAA.
PARCEL
Post office.
POWER_PLANT
Power plant.
SCHOOL
School.
STADIUM
stadium.
NUCLEAR_POWER_PLANT
Nuclear power plant.
PROHIBITED_SPECIAL_USE
Special Use.
RESTRICTED_SPECIAL_USE
Special Use.
SPECIAL
Special fly zone.
TEMPORARY_FLIGHT_RESTRICTIONS
Temporary flight restriction.
CLASS_B_AIR_SPACE
Class B controlled airspace. See http://www.dji.com/flysafe/geo-system#notes for more information on the controlled airspace (Class B, C, D, E) in the United States.
CLASS_C_AIR_SPACE
Class C controlled airspace. See http://www.dji.com/flysafe/geo-system#notes for more information on the controlled airspace (Class B, C, D, E) in the United States.
CLASS_D_AIR_SPACE
Class D controlled airspace. See http://www.dji.com/flysafe/geo-system#notes for more information on the controlled airspace (Class B, C, D, E) in the United States.
CLASS_E_AIR_SPACE
Class E controlled airspace. See http://www.dji.com/flysafe/geo-system#notes for more information on the controlled airspace (Class B, C, D, E) in the United States.
Fly safety database upgrade mode. Includes manual import and automatic upgrade. MSDK only supports manual import mode. If you need to use automatic upgrade mode, please use DJI official APP.
Supported since MSDK 5.8.0
Enum Members:
MANUAL_IMPORT
Manual import mode. MSDK only supports manual upgrade mode. If you need to use automatic upgrade mode, please use the DJI official APP.
AUTOMATIC_UPGRADE
Automatic upgrade mode. MSDK only supports manual upgrade mode. If you need to use automatic upgrade mode, please use the DJI official APP. The automatic update mode can only be used as a supplement for fly safety. If you want to fly your aircraft compliantly in the EU, please refer to manually importing EU GeoZone data into the aircraft.
Need to import. Indicates that the current database of MSDK does not contain data on the current position of the aircraft. Please call importFlySafeDynamicDatabaseToMSDK to import the database near the aircraft location.
NEED_TO_SYNC
Need to synchronize. Indicates that the database in MSDK needs to be synchronized to the aircraft. Please call pushFlySafeDynamicDatabaseToAircraft to push the database in MSDK to the aircraft.
UP_TO_DATE
Up to date. Indicates that the MSDK database has been successfully synchronized to the aircraft.