BatteryProfile

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

Constructors

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

Functions

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

Properties

batteryCapacity
Link copied to clipboard
var batteryCapacity: Float

Battery capacity in kWh

batteryChargingThreshold
Link copied to clipboard
var batteryChargingThreshold: Float

Percent of capacity

batteryFullChargeThreshold
Link copied to clipboard
var batteryFullChargeThreshold: Float

Percent of capacity when battery is considered fully charged

batteryMinimumReserveThreshold
Link copied to clipboard
var batteryMinimumReserveThreshold: Float

Percent of capacity as safety (will be never used)

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

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

remainingCapacity
Link copied to clipboard
var remainingCapacity: Float

Remaining battery capacity in kWh