DJI Mobile SDK Documentation

      class Statistics

      final class Statistics
      Package:dji.sdk.flighthub.model
      Description:

      The flight statistics includes total and average flight duration. It also provides a distributed diagram data of flight duration.

      Class Members:
      method getTotalDuration
      double getTotalDuration()
      Package:dji.sdk.flighthub.model
      Description:

      Gets total flight duration over a period of time in minutes.

      Return:
      doubleThe total flight duration.
      method getAverageDuration
      double getAverageDuration()
      Package:dji.sdk.flighthub.model
      Description:

      Gets average flight duration over a period of time in minutes.

      Return:
      doubleThe average flight duration.
      method getDurationDistribution
      LinkedHashMap<String, Integer> getDurationDistribution()
      Package:dji.sdk.flighthub.model
      Description:

      Gets the histogram distribution of the flight durations (in minutes). The duration intervals are [0, 5), [5, 10), [10, 15), [15, 20) and [20, +∞).

      Return:
      LinkedHashMap<String, Integer>A LinkedHashMap with string keys "0-5", "5-10", "10-15", "15-20" and "20+" in order. The values are the number of flights in the duration range.