VehicleStatus

data class VehicleStatus(var position: GeoPoint? = null, var payLoad: Int = 75, var currentEnergyLoad: Double = Vehicle.UNKNOWN_SOC, var externalTemperature: Int = defaultTemp, var auxConsumption: Int = 0)

Stores information about current vehicle properties in particular time

Parameters

position

vehicle location

payLoad

vehicle payload (in kg)

currentEnergyLoad

current SoC (battery level) of vehicle in %

externalTemperature

the exterior temperature in °C

auxConsumption

instantaneous consumption of auxiliary equipments (in kWh)

Constructors

Link copied to clipboard
constructor(position: GeoPoint? = null, payLoad: Int = 75, currentEnergyLoad: Double = Vehicle.UNKNOWN_SOC, externalTemperature: Int = defaultTemp, auxConsumption: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun toJson(): String