Add ENGINE_COOLANT_TEMP property for the emulator

Test: atest CarPropertyManagerTest
Bug: 231209215
Change-Id: Ic80ced50e9a59041d60da1968564a59ce5a2115f
This commit is contained in:
seanhong 2022-06-09 00:10:15 +00:00 committed by Sean Hong
parent d755652919
commit 551bc88864

View file

@ -713,6 +713,16 @@ const std::vector<ConfigDeclaration> 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),