DebugVehicleElectricEngineStateService

A service that allows clients to set current vehicle engine state parameters such as the battery level for debugging and testing purposes when a debug vehicle profile is being used. This means that a non-null vehicle profile ID has been set using DebugVehicleProfileSettingsService.selectedDebugVehicleProfileId. The selected vehicle profile must also be for a vehicle with an electric engine.

The engine state can be retrieved using the VehicleElectricEngineService.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun forceCurrentBatteryLevel(batteryChargeLevel: VehicleProperties.SingleProperty<Energy>)

Sets the current battery level to the specified value for debugging or testing purposes.

Link copied to clipboard

Sets the remaining vehicle driving range to the specified value for debugging or testing purposes.

Link copied to clipboard
abstract suspend fun forceIsChargingConnectorConnected(isChargingConnectorConnected: VehicleProperties.BooleanProperty)

Sets the charging connector connected state to the specified value for debugging or testing purposes.