Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16bf94da authored by Shivani Ghanta's avatar Shivani Ghanta
Browse files

DO NOT MERGE Add missing CAR_MIRROR properties to DefaultConfig.h

Test: Built.
Bug: 241161716
Change-Id: I53a6686fec62df205139d8e994237c56f0da8428
parent c9d82cd7
Loading
Loading
Loading
Loading
+70 −0
Original line number Diff line number Diff line
@@ -1072,6 +1072,76 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
                                     .areaId = DOOR_REAR, .minInt32Value = 0, .maxInt32Value = 1}}},
         .initialValue = {.int32Values = {0}}},

        {.config = {.prop = toInt(VehicleProperty::MIRROR_Z_POS),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                    .areaConfigs =
                            {VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_LEFT),
                                               .minInt32Value = -3,
                                               .maxInt32Value = 3},
                             VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_RIGHT),
                                               .minInt32Value = -3,
                                               .maxInt32Value = 3},
                             VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_CENTER),
                                               .minInt32Value = -3,
                                               .maxInt32Value = 3}}},
         .initialValue = {.int32Values = {0}}},

        {.config = {.prop = toInt(VehicleProperty::MIRROR_Z_MOVE),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                    .areaConfigs =
                            {VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_LEFT),
                                               .minInt32Value = -1,
                                               .maxInt32Value = 1},
                             VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_RIGHT),
                                               .minInt32Value = -1,
                                               .maxInt32Value = 1},
                             VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_CENTER),
                                               .minInt32Value = -1,
                                               .maxInt32Value = 1}}},
         .initialValue = {.int32Values = {0}}},

        {.config = {.prop = toInt(VehicleProperty::MIRROR_Y_POS),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                    .areaConfigs =
                            {VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_LEFT),
                                               .minInt32Value = -3,
                                               .maxInt32Value = 3},
                             VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_RIGHT),
                                               .minInt32Value = -3,
                                               .maxInt32Value = 3},
                             VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_CENTER),
                                               .minInt32Value = -3,
                                               .maxInt32Value = 3}}},
         .initialValue = {.int32Values = {0}}},

        {.config = {.prop = toInt(VehicleProperty::MIRROR_Y_MOVE),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                    .areaConfigs =
                            {VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_LEFT),
                                               .minInt32Value = -1,
                                               .maxInt32Value = 1},
                             VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_RIGHT),
                                               .minInt32Value = -1,
                                               .maxInt32Value = 1},
                             VehicleAreaConfig{.areaId = toInt(VehicleAreaMirror::DRIVER_CENTER),
                                               .minInt32Value = -1,
                                               .maxInt32Value = 1}}},
         .initialValue = {.int32Values = {0}}},

        {.config = {.prop = toInt(VehicleProperty::MIRROR_LOCK),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE},
         .initialValue = {.int32Values = {1}}},

        {.config = {.prop = toInt(VehicleProperty::MIRROR_FOLD),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE},
         .initialValue = {.int32Values = {1}}},

        {.config = {.prop = toInt(VehicleProperty::WINDOW_LOCK),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,