mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "Add config for tire pressure display units" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
93f22c85c7
@@ -437,6 +437,16 @@ const ConfigDeclaration kVehicleProperties[]{
|
||||
},
|
||||
.initialValue = {.floatValues = {200.0f}}}, // units in kPa
|
||||
|
||||
{.config =
|
||||
{
|
||||
.prop = toInt(VehicleProperty::TIRE_PRESSURE_DISPLAY_UNITS),
|
||||
.access = VehiclePropertyAccess::READ_WRITE,
|
||||
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,
|
||||
.configArray = {(int)VehicleUnit::KILOPASCAL, (int)VehicleUnit::PSI,
|
||||
(int)VehicleUnit::BAR},
|
||||
},
|
||||
.initialValue = {.int32Values = {toInt(VehicleUnit::PSI)}}},
|
||||
|
||||
{.config =
|
||||
{
|
||||
.prop = toInt(VehicleProperty::CURRENT_GEAR),
|
||||
|
||||
Reference in New Issue
Block a user