DJI-Mobile-SDK-Tutorials / iOS-GSDemo

A demo teaches you how to construct a DJIWaypoint Mission app, which allows you to plot a flight route for your drone by placing waypoints on a map.
MIT License
27 stars 5 forks source link

How to create custom Flyzone area like Commander app and controlling drone to fly within this particular area ? #6

Open EonKid opened 8 years ago

EonKid commented 8 years ago

I am creating an app to force the drone to fly within those custom flyzone area and when user tries to go outside of that particular drone area then then my app will force drone to drag back drone to my custom Flyzone area.How can i create custom Flyzone?

dji-dev commented 8 years ago

Hi @EonKid, we suggest you to use VirtualStickControlMode to implement the feature of forcing the drone to drag back to your custom flyzone area. Moreover, you need to create your own algorithm to define the custom flyzone by compairing the aircraft's current coordinate and the custom flyzone's GPS coordinate area.

You can check the Rotating with Virtual Stick section of iOS's Panorama Demo for an example of using VirtualStickControlMode. Hope this help!

EonKid commented 8 years ago

@dji-dev Thanks for your reply i hope i will do this by using your provided information

EonKid commented 7 years ago

@dji-dev I have studied all the tutorial provided by you on Github to solve this issue but unable to find proper solution.When i give commands to drone alfter it enters outside the custom fly zone area by giving zero x-y velocity .The remote controller control loop breaks .And for this algorithm I am building an app in which if user try to go outside the Custom Flyzone area Drone will never go outside and always stays inside. Please provide some solution as soon as possible

oliverou commented 7 years ago

Hi @EonKid , If we provide you the API of setting Max Flight Distance and Max Flight Altitude of the aircraft like DJI Go app, would it be helpful for you to implement the feature?

img_0009

EonKid commented 7 years ago

@dji-dev Thanks for your reply

EonKid commented 7 years ago

zone @dji-dev it only forces the drone to fly within the circular region what about polygon shapes .

oliverou commented 7 years ago

Hi @EonKid, currently, it's not possible to implement the polygon fly zone shapes using DJI Mobile SDK.

mnabilurrehman commented 3 years ago

Hi @EonKid, currently, it's not possible to implement the polygon fly zone shapes using DJI Mobile SDK.

Hi! Is the solution available now? can I restrict DJI drone with in a polygon created by me? I am using VirtualFence in android and it gets error that VirtualFence not support. Can you tell does VirtualFence is supported by limited number of drones and if so what are they. Thanks.

mnabilurrehman commented 3 years ago

@dji-dev I have studied all the tutorial provided by you on Github to solve this issue but unable to find proper solution.When i give commands to drone alfter it enters outside the custom fly zone area by giving zero x-y velocity .The remote controller control loop breaks .And for this algorithm I am building an app in which if user try to go outside the Custom Flyzone area Drone will never go outside and always stays inside. Please provide some solution as soon as possible

Hi! Were you able to get the solution? Thanks