mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 12:07:58 +00:00
DO NOT MERGE Add seat lumbar properties to the emulator for CTS tests
Test: atest CarPropertyManagerTest Bug: 239613431 Change-Id: I177420199437a6e8057aeb0e6f6cc06b38a0a4ce
This commit is contained in:
@@ -509,6 +509,86 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
|
||||
.maxInt32Value = 1}}},
|
||||
.initialValue = {.int32Values = {0}}},
|
||||
|
||||
{.config = {.prop = toInt(VehicleProperty::SEAT_LUMBAR_FORE_AFT_POS),
|
||||
.access = VehiclePropertyAccess::READ_WRITE,
|
||||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
.areaConfigs = {VehicleAreaConfig{.areaId = SEAT_1_LEFT,
|
||||
.minInt32Value = -10,
|
||||
.maxInt32Value = 10},
|
||||
VehicleAreaConfig{.areaId = SEAT_1_RIGHT,
|
||||
.minInt32Value = -10,
|
||||
.maxInt32Value = 10},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_LEFT,
|
||||
.minInt32Value = -10,
|
||||
.maxInt32Value = 10},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_RIGHT,
|
||||
.minInt32Value = -10,
|
||||
.maxInt32Value = 10},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_CENTER,
|
||||
.minInt32Value = -10,
|
||||
.maxInt32Value = 10}}},
|
||||
.initialValue = {.int32Values = {0}}},
|
||||
|
||||
{.config = {.prop = toInt(VehicleProperty::SEAT_LUMBAR_FORE_AFT_MOVE),
|
||||
.access = VehiclePropertyAccess::READ_WRITE,
|
||||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
.areaConfigs = {VehicleAreaConfig{.areaId = SEAT_1_LEFT,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1},
|
||||
VehicleAreaConfig{.areaId = SEAT_1_RIGHT,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_LEFT,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_RIGHT,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_CENTER,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1}}},
|
||||
.initialValue = {.int32Values = {0}}},
|
||||
|
||||
{.config = {.prop = toInt(VehicleProperty::SEAT_LUMBAR_SIDE_SUPPORT_POS),
|
||||
.access = VehiclePropertyAccess::READ_WRITE,
|
||||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
.areaConfigs = {VehicleAreaConfig{.areaId = SEAT_1_LEFT,
|
||||
.minInt32Value = 0,
|
||||
.maxInt32Value = 10},
|
||||
VehicleAreaConfig{.areaId = SEAT_1_RIGHT,
|
||||
.minInt32Value = 0,
|
||||
.maxInt32Value = 10},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_LEFT,
|
||||
.minInt32Value = 0,
|
||||
.maxInt32Value = 10},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_RIGHT,
|
||||
.minInt32Value = 0,
|
||||
.maxInt32Value = 10},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_CENTER,
|
||||
.minInt32Value = 0,
|
||||
.maxInt32Value = 10}}},
|
||||
.initialValue = {.int32Values = {0}}},
|
||||
|
||||
{.config = {.prop = toInt(VehicleProperty::SEAT_LUMBAR_SIDE_SUPPORT_MOVE),
|
||||
.access = VehiclePropertyAccess::READ_WRITE,
|
||||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
.areaConfigs = {VehicleAreaConfig{.areaId = SEAT_1_LEFT,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1},
|
||||
VehicleAreaConfig{.areaId = SEAT_1_RIGHT,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_LEFT,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_RIGHT,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1},
|
||||
VehicleAreaConfig{.areaId = SEAT_2_CENTER,
|
||||
.minInt32Value = -1,
|
||||
.maxInt32Value = 1}}},
|
||||
.initialValue = {.int32Values = {0}}},
|
||||
|
||||
{.config =
|
||||
{
|
||||
.prop = toInt(VehicleProperty::SEAT_OCCUPANCY),
|
||||
|
||||
Reference in New Issue
Block a user