-
Notifications
You must be signed in to change notification settings - Fork 55
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
How to get gps location of Spark? #21
Comments
Agent comment from William Wong in Zendesk ticket #36667: please refer to the code below. Hopefully our solution can help you. |
Thank you for your reply, Mr Wong! I have one more questions to ask! What is the class "Flightcontollerkey" for? There are some flight controller key of aircraft location. Should we use that key for obtaining location info from flight controller? |
Agent comment from William Wong in Zendesk ticket #36667: You don't need to worry about the key for now. It is another way to access the data such as aircraft location. The tutorials do not describe clearly how to use them. So in this stage I would suggest you just simply use the getter and setter functions. Hopefully our solution can help you. |
This is the original code that I added some logs. What should it be changed for Spark ? |
Agent comment from William Wong in Zendesk ticket #36667: You don't need to change it. By the way, what do you mean by cannot access it. What is the error return? You have to make sure the drone has good GPS signal to receive the data. Hopefully our solution can help you. |
I mean, when I make a log of aircraft location, it returns always null. But I think the problem is that I am testing it in a building. Thank you for your reply! I will use the dji assistant 2 simulation program |
Hi, I am trying to use this tutorial to make Spark's gps location but not able to access it, even flgihtcontroller class. how to get flightcontroller class from Spark?
The text was updated successfully, but these errors were encountered: