dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
972 stars 580 forks source link

DJISampleApplication.getAircraftInstance().getFlightController().getState().setAircraftLocation #1295

Open danilofariadutra opened 2 months ago

danilofariadutra commented 2 months ago

DJISampleApplication.getAircraftInstance().getFlightController().getState().setAircraftLocation(waypoint)

What does the method do? I didn't find it on the MSDK API website

dji-dev commented 2 months ago

Agent comment from yating.liao in Zendesk ticket #105572:

The method is not effective. State().setAircraftLocation means that you are setting the aircraft location for the flight status instance you have obtained, but it will not change the aircraft's position. setAircraftLocation is an interface that is rarely used, so it is not explained in the documentation.

°°°

danilofariadutra commented 2 months ago

Is there any method that I can tell the drone a latitude, longitude and altitude to go to? Something like that already exists in WaypointMissionOperator, however, for drones that don't support WaypointMissionOperator?

dji-dev commented 2 months ago

Agent comment from yating.liao in Zendesk ticket #105572:

For drones that do not support waypoint missions, the SDK currently does not have an interface for the aircraft to autonomously fly to a specific location. The Virtual Stick feature can control the aircraft's movement by inputting the aircraft's speed. If you need to achieve autonomous flight on a drone that does not support waypoint missions, you can currently consider using the Virtual Stick feature to implement a self-flight motion control function.

°°°