From 551bc88864bb4cefb3b79f8fbce7eeed05c5c01f Mon Sep 17 00:00:00 2001 From: seanhong Date: Thu, 9 Jun 2022 00:10:15 +0000 Subject: [PATCH] Add ENGINE_COOLANT_TEMP property for the emulator Test: atest CarPropertyManagerTest Bug: 231209215 Change-Id: Ic80ced50e9a59041d60da1968564a59ce5a2115f --- .../aidl/impl/default_config/include/DefaultConfig.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h index e00f775a04..ff480e9bc2 100644 --- a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h +++ b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h @@ -713,6 +713,16 @@ const std::vector kVehicleProperties = { }, .initialValue = {.int32Values = {toInt(VehicleIgnitionState::ON)}}}, + {.config = + { + .prop = toInt(VehicleProperty::ENGINE_COOLANT_TEMP), + .access = VehiclePropertyAccess::READ, + .changeMode = VehiclePropertyChangeMode::CONTINUOUS, + .minSampleRate = 1.0f, + .maxSampleRate = 10.0f, + }, + .initialValue = {.floatValues = {75.0f}}}, + {.config = { .prop = toInt(VehicleProperty::ENGINE_OIL_LEVEL),