GithubHelp home page GithubHelp logo

Comments (10)

dji-dev avatar dji-dev commented on August 12, 2024 1

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

Some models can get time and distance. You can refer to this article;https://sdk-forum.dji.net/hc/en-us/articles/7753552666649-How-to-get-the-flight-distance-flight-times-and-total-flight-time

The data obtained from this interface may differ from the data displayed on the official app.

°°°

from mobile-sdk-android.

huongta157 avatar huongta157 commented on August 12, 2024

@dji-dev thank you so much

from mobile-sdk-android.

dji-dev avatar dji-dev commented on August 12, 2024

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

I am glad to help you.

°°°

from mobile-sdk-android.

huongta157 avatar huongta157 commented on August 12, 2024

@dji-dev I have a question
Have a function to support getting activated days?

from mobile-sdk-android.

huongta157 avatar huongta157 commented on August 12, 2024
 val flightDistanceKey: DJIKey =
                FlightControllerKey.createFlightAssistantKey(FlightControllerKey.AIRCRAFT_TOTAL_FLIGHT_DISTANCE)
            val value = KeyManager.getInstance().getValue(flightDistanceKey)

Sorry @dji-dev I used this code but the value returned to null. Can you help me?

from mobile-sdk-android.

dji-dev avatar dji-dev commented on August 12, 2024

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

We currently do not have an interface to retrieve the activation days.
You need to replace "createFlightAssistantKey" with "create" to create FlightControllerKey.AIRCRAFT_TOTAL_FLIGHT_DISTANCE.

°°°

from mobile-sdk-android.

huongta157 avatar huongta157 commented on August 12, 2024

@dji-dev thanks
I try to call it on Main and IO thread but the result is still null.

from mobile-sdk-android.

dji-dev avatar dji-dev commented on August 12, 2024

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

Could you confirm if the model you are using supports obtaining AIRCRAFT_TOTAL_FLIGHT_DISTANCE? We mentioned in our previous communication that this key only works on the M300 and Mavic 2 Enterprise Advanced.

Thank you.

°°°

from mobile-sdk-android.

huongta157 avatar huongta157 commented on August 12, 2024

@dji-dev I got it, thank you so much.

from mobile-sdk-android.

dji-dev avatar dji-dev commented on August 12, 2024

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

I am glad that I could help you.

°°°

from mobile-sdk-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.