Adding INFO_EXTERIOR_DIMENSIONS car property.

Fix: 146020990
Test: Tested on device.
Change-Id: I003cbb05de0a91efb8e393860fc64ba508515b26
This commit is contained in:
Tyler Trephan 2019-11-22 11:58:29 -08:00
parent 0b01002de6
commit e57c109d3e
2 changed files with 29 additions and 0 deletions

View file

@ -253,6 +253,13 @@ const ConfigDeclaration kVehicleProperties[]{
.changeMode = VehiclePropertyChangeMode::STATIC,
},
.initialValue = {.stringValue = "Toy Vehicle"}},
{.config =
{
.prop = toInt(VehicleProperty::INFO_EXTERIOR_DIMENSIONS),
.access = VehiclePropertyAccess::READ,
.changeMode = VehiclePropertyChangeMode::STATIC,
},
.initialValue = {.floatValues = {1776, 4950, 2008, 2140, 2984, 1665, 1667, 11800}}},
{.config =
{
.prop = toInt(VehicleProperty::PERF_VEHICLE_SPEED),

View file

@ -297,6 +297,28 @@ enum VehicleProperty : int32_t {
| VehiclePropertyType:INT32
| VehicleArea:SEAT),
/**
* Exterior dimensions of vehicle.
*
* int32Values[0] = height
* int32Values[1] = length
* int32Values[2] = width
* int32Values[3] = width including mirrors
* int32Values[4] = wheel base
* int32Values[5] = track width front
* int32Values[6] = track width rear
* int32Values[7] = curb to curb turning radius
*
* @change_mode VehiclePropertyChangeMode:STATIC
* @access VehiclePropertyAccess:READ
* @unit VehicleUnit:MILLIMETER
*/
INFO_EXTERIOR_DIMENSIONS = (
0x010B
| VehiclePropertyGroup:SYSTEM
| VehiclePropertyType:INT32_VEC
| VehicleArea:GLOBAL),
/**
* Current odometer value of the vehicle
*