VehicleElectricEngineService

interface VehicleElectricEngineService

A service interface that provides access to state information, coming through the VHAL as properties of electric (EV) or hybrid vehicles.

Not all vehicles have EV or hybrid properties, and specific functionality can be unavailable. To reflect this, individual properties can have different states.

  • Unsupported: the property is not supported by the vehicle platform. In this case the property itself is set to null.

  • Supported, but unavailable: the property is temporarily unavailable or has an invalid value, indicated by the value field of the property being set to null.

  • Available: the property is available and has a valid value.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val accelerationEfficiency: VehicleProperties.NumberProperty<Float>?

The efficiency of the engine when accelerating.

Link copied to clipboard
abstract val auxiliaryPower: VehicleProperties.SingleProperty<Power>?

The amount of power consumed by sustaining auxiliary systems. It can be used to specify consumption due to devices and systems like AC systems, radio, heating, etc.

Link copied to clipboard
abstract val batteryChargeLevel: VehicleProperties.RangedProperty<Energy>?

Indicates the current battery level, if EV or hybrid. The maximum value of this ranged property indicates the battery's capacity.

Link copied to clipboard

The charging connectors supported by the vehicle.

Link copied to clipboard

An estimate of how fast the battery charges, depending on the current charging level.

Link copied to clipboard
abstract val chargingTimeOffset: VehicleProperties.SingleProperty<Duration>?

The charging time offset.

Link copied to clipboard

The data used to estimate how much energy the vehicle requires for driving.

Link copied to clipboard
abstract val decelerationEfficiency: VehicleProperties.NumberProperty<Float>?

The efficiency of the engine when decelerating.

Link copied to clipboard
abstract val downhillEfficiency: VehicleProperties.NumberProperty<Float>?

The efficiency of the engine going downhill.

Link copied to clipboard
abstract val isChargingConnectorConnected: VehicleProperties.BooleanProperty?

Indicates if the charging connector is connected to the vehicle.

Link copied to clipboard
abstract val remainingRange: VehicleProperties.SingleProperty<Distance>?

The remaining range.

Link copied to clipboard
abstract val uphillEfficiency: VehicleProperties.NumberProperty<Float>?

The efficiency of the engine going uphill.