Mobile-SDK-Android icon indicating copy to clipboard operation
Mobile-SDK-Android copied to clipboard

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

Open danilofariadutra opened this issue 10 months ago • 3 comments

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

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

danilofariadutra avatar Apr 19 '24 19:04 danilofariadutra

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.

°°°

dji-dev avatar Apr 22 '24 12:04 dji-dev

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?

danilofariadutra avatar Apr 22 '24 15:04 danilofariadutra

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.

°°°

dji-dev avatar Apr 23 '24 09:04 dji-dev