DJI Mobile SDK Documentation

      class DJIBatteryWarningRecord

      @interface DJIBatteryWarningRecord : NSObject
      Header:DJIBatteryState.h
      Inherits From:NSObject
      SDK Key:DJIBatteryKey.DJIBatteryParamLatestWarningRecord
      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 YES, which is why it is imperative that the user is notified of the issue.

      Class Members:

      Battery Properties

      Electrical
      property
      property isCurrentOverloaded
      @property(nonatomic, readonly) BOOL isCurrentOverloaded
      Header:DJIBatteryState.h
      Description:

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

      property isShortCircuited
      @property(nonatomic, readonly) BOOL isShortCircuited
      Header:DJIBatteryState.h
      Description:

      YES if the battery has been or is short circuited.

      property lowVoltageCellIndex
      @property(nonatomic, readonly) int lowVoltageCellIndex
      Header:DJIBatteryState.h
      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.

      Thermal
      property
      property isOverHeated
      @property(nonatomic, readonly) BOOL isOverHeated
      Header:DJIBatteryState.h
      Description:

      YES if the battery has overheated.

      property isLowTemperature
      @property(nonatomic, readonly) BOOL isLowTemperature
      Header:DJIBatteryState.h
      Description:

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

      Discharge
      property
      property isCustomDischargeEnabled
      @property(nonatomic, readonly) BOOL isCustomDischargeEnabled
      Header:DJIBatteryState.h
      Description:

      YES 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.

      Damage
      property
      property damagedCellIndex
      @property(nonatomic, readonly) int damagedCellIndex
      Header:DJIBatteryState.h
      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.