Skip to main content

ChargeInfo

class ChargeInfo

Description: Charging info about drone

class ChargeInfo {
var chargeErrorA = false
var chargeErrorB = false

/**
* Charging open bit
*/
private var chargeOpeningPos = false

/**
* I2C error
*/
private var i2CError = false

/**
* initialization failed
*/
private var initFail = false

/**
* state
*/
private var status = 0

/**
* Input current limit, unit: mA
*/
private var busLimit = 0

/**
* Charging current limit, unit: mA
*/
private var batLimit = 0

/**
* Input voltage, unit: mV
*/
private var vBus = 0

/**
* Charging voltage, unit: mV
*/
private var vBat = 0

/**
* Input current, unit: mA
*/
private var iBus = 0

/**
* Input current, unit: mA
*/
private var iBat = 0
}