DJI Mobile SDK Documentation

      class WarningRecord

      @EXClassNullAway
      class WarningRecord
      Package:dji.common.battery
      SDK Key:BatteryKey.LATEST_WARNING_RECORD, BatteryKey.HISTORICAL_WARNING_RECORDS
      Description:

      Used to keep a record of any unusual battery statues in the past 30 discharges. For all the properties below, monitor these values frequently to ensure the battery's state is normal. If any of the properties below indicate there is an issue with the battery, notifying the user is recommended.

      NOTE: No automatic action will be taken if any of the properties below return true, which is why it is imperative that the user is notified of the issue.

      Class Members:

      Battery Properties

      Electrical
      method
      method isCurrentOverloaded
      boolean isCurrentOverloaded()
      Package:dji.common.battery
      Description:

      true if the battery should be discharged due to a current overload.

      Return:
      booleanA boolean value.
      method isShortCircuited
      boolean isShortCircuited()
      Package:dji.common.battery
      Description:

      true if the battery has been or is short circuited.

      Return:
      booleanA boolean value.
      method getLowVoltageCellIndex
      int getLowVoltageCellIndex()
      Package:dji.common.battery
      Description:

      Returns the index at which one of the cells in the battery is below the normal voltage. The first cell has an index of 0. -1 represents no battery cells under voltage. Phantom Series Aircraft have four cell batteries. Inspire series aircraft and the M100 have 6 cell batteries.

      Return:
      intAn int value.
      Thermal
      method
      method isOverHeated
      boolean isOverHeated()
      Package:dji.common.battery
      Description:

      true if the battery has overheated.

      Return:
      booleanA boolean value.
      method isLowTemperature
      boolean isLowTemperature()
      Package:dji.common.battery
      Description:

      true if the battery has experienced a temperature that is too low.

      Return:
      booleanA boolean value.
      method isCustomDischargeEnabled
      boolean isCustomDischargeEnabled()
      Package:dji.common.battery
      Description:

      true if the battery has been configured to be discharged over a specific number of days. Once the battery is fully recharged, the battery will again discharge over the number of days set here. This process is cyclical.

      Return:
      booleanA boolean value.
      method getDamagedCellIndex
      int getDamagedCellIndex()
      Package:dji.common.battery
      Description:

      Returns the index at which one of the cells in the battery is damaged. The first cell has an index of 0. -1 represents no damaged battery cells. Phantom 3 aircraft have 4 cell batteries. Inspire series aircraft and the M100 have 6 cell batteries.

      Return:
      intAn int value.