BatteryProfile

data class BatteryProfile @JvmOverloads constructor(    var batteryCapacity: Float,     var remainingCapacity: Float,     var batteryChargingThreshold: Float,     var batteryFullChargeThreshold: Float,     var batteryMinimumReserveThreshold: Float,     var chargingCurve: Map<Double, Double> = emptyMap()) : Parcelable

Constructors

Link copied to clipboard
fun BatteryProfile(    batteryCapacity: Float,     remainingCapacity: Float,     batteryChargingThreshold: Float,     batteryFullChargeThreshold: Float,     batteryMinimumReserveThreshold: Float,     chargingCurve: Map<Double, Double> = emptyMap())

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
var batteryCapacity: Float

Battery capacity in kWh

Link copied to clipboard
var batteryChargingThreshold: Float

Percent of capacity

Link copied to clipboard
var batteryFullChargeThreshold: Float

Percent of capacity when battery is considered fully charged

Link copied to clipboard
var batteryMinimumReserveThreshold: Float

Percent of capacity as safety (will be never used)

Link copied to clipboard
var chargingCurve: Map<Double, Double>

Battery capacity kilowatt hours (kWh) to charging power in kilowatts (kW) curve

Link copied to clipboard
var remainingCapacity: Float

Remaining battery capacity in kWh