From ebce8fc9a813c8ab2bfb07d49686dc6e89010518 Mon Sep 17 00:00:00 2001 From: Scott Randolph Date: Mon, 7 Nov 2016 17:26:29 -0800 Subject: [PATCH] Add TURN_SIGNAL_STATE to enum VehicleProperty While we have defined values for turn signal state, we were missing a property id to allow it to be reported by the vehicle. Test: local build Change-Id: Ib741c717f62df8edaa187413e9114411c55b0420 --- vehicle/2.0/types.hal | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/vehicle/2.0/types.hal b/vehicle/2.0/types.hal index cb551c186b..b19621c99f 100644 --- a/vehicle/2.0/types.hal +++ b/vehicle/2.0/types.hal @@ -295,6 +295,20 @@ enum VehicleProperty: int32_t { | VehiclePropertyType:BOOLEAN | VehicleArea:GLOBAL), + /* + * State of the vehicles turn signals + * + * Values from VehicleTurnSignal + * + * @change_mode VehiclePropertyChangeMode:ON_CHANGE + * @access VehiclePropertyAccess:READ + */ + TURN_SIGNAL_STATE = ( + 0x0408 + | VehiclePropertyGroup:SYSTEM + | VehiclePropertyType:INT32 + | VehicleArea:GLOBAL), + /* * Fan speed setting * @@ -2420,8 +2434,9 @@ enum SubscribeFlags { UNDEFINED = 0x0, /* - * Subscribe to event that was originated in vehicle HAL (most luckly this - * event came from vehicle itself). */ + * Subscribe to event that was originated in vehicle HAL + * (most likely this event came from the vehicle itself). + */ HAL_EVENT = 0x1, /* @@ -2457,9 +2472,7 @@ struct SubscribeOptions { */ float sampleRate; - /* - * Flags that indicates what kind of events listen to. - */ + /* Flags that indicate what kind of events listen to. */ SubscribeFlags flags; };