mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Fix vts-hal-auto test
Add min/maxSampleRate for some properties and add new static
properties.
Bug: 112596543
Test: Build and flash into Mojave
Run vts-hal-auto test
Change-Id: Ide0c09e4790770e5415ca223b2e09f5958b5e783
(cherry picked from commit 3acc549fa87fbe19b181edea39eead0772f75822)
This commit is contained in:
@@ -196,6 +196,15 @@ const ConfigDeclaration kVehicleProperties[]{
|
||||
},
|
||||
.initialValue = {.int32Values = {1}}},
|
||||
|
||||
{.config =
|
||||
{
|
||||
.prop = toInt(VehicleProperty::INFO_DRIVER_SEAT),
|
||||
.access = VehiclePropertyAccess::READ,
|
||||
.changeMode = VehiclePropertyChangeMode::STATIC,
|
||||
.areaConfigs = {VehicleAreaConfig{.areaId = (0)}},
|
||||
},
|
||||
.initialValue = {.int32Values = {SEAT_1_LEFT}}},
|
||||
|
||||
{.config =
|
||||
{
|
||||
.prop = toInt(VehicleProperty::INFO_FUEL_DOOR_LOCATION),
|
||||
@@ -321,6 +330,8 @@ const ConfigDeclaration kVehicleProperties[]{
|
||||
.access = VehiclePropertyAccess::READ,
|
||||
.changeMode = VehiclePropertyChangeMode::CONTINUOUS,
|
||||
.areaConfigs = {VehicleAreaConfig{.areaId = (0)}},
|
||||
.minSampleRate = 1.0f,
|
||||
.maxSampleRate = 2.0f,
|
||||
},
|
||||
.initialValue = {.floatValues = {100.0f}}}, // units in meters
|
||||
|
||||
@@ -328,6 +339,8 @@ const ConfigDeclaration kVehicleProperties[]{
|
||||
{.prop = toInt(VehicleProperty::TIRE_PRESSURE),
|
||||
.access = VehiclePropertyAccess::READ,
|
||||
.changeMode = VehiclePropertyChangeMode::CONTINUOUS,
|
||||
.minSampleRate = 1.0f,
|
||||
.maxSampleRate = 2.0f,
|
||||
.areaConfigs =
|
||||
{VehicleAreaConfig{
|
||||
.areaId = WHEEL_FRONT_LEFT, .minFloatValue = 100.0f, .maxFloatValue = 300.0f,
|
||||
|
||||
Reference in New Issue
Block a user