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

Battery capacity in kWh

Link copied to clipboard

Percent of capacity

Link copied to clipboard

Percent of capacity when battery is considered fully charged

Link copied to clipboard

Percent of capacity as safety (will be never used)

Link copied to clipboard

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

Link copied to clipboard

Remaining battery capacity in kWh