Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danilofariadutra opened this issue Apr 19, 2024 · 3 comments

Comments

@danilofariadutra
Copy link

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

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

@dji-dev
Copy link
Contributor

dji-dev commented Apr 22, 2024

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
Copy link
Author

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
Copy link
Contributor

dji-dev commented Apr 23, 2024

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.

°°°

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants