From 7454051d3c6a6400f190c7eff337f1bc9dd1386a Mon Sep 17 00:00:00 2001 From: Khrystyna Dubovyk Date: Mon, 16 Nov 2020 13:37:01 +0200 Subject: [PATCH 1/2] Add new seatOccupancy params --- docs/Common/Enums/index.md | 1 + docs/Common/Structs/index.md | 13 +++++++++++++ docs/VehicleInfo/GetVehicleData/index.md | 2 ++ docs/VehicleInfo/OnVehicleData/index.md | 1 + docs/VehicleInfo/SubscribeVehicleData/index.md | 2 ++ docs/VehicleInfo/UnsubscribeVehicleData/index.md | 2 ++ 6 files changed, 21 insertions(+) diff --git a/docs/Common/Enums/index.md b/docs/Common/Enums/index.md index 9be2c1c31..dd58e0785 100644 --- a/docs/Common/Enums/index.md +++ b/docs/Common/Enums/index.md @@ -889,6 +889,7 @@ |VEHICLEDATA_ELECTRONICPARKBRAKESTATUS|29|| |VEHICLEDATA_CLOUDAPPVEHICLEID|30| Parameter used by cloud apps or the policy server to identify a head unit| |VEHICLEDATA_OEM_CUSTOM_DATA|31|| +|VEHICLEDATA_SEATOCCUPANCY|32|| ### VideoStreamingProtocol diff --git a/docs/Common/Structs/index.md b/docs/Common/Structs/index.md index 2a02e4277..3b61cbf96 100644 --- a/docs/Common/Structs/index.md +++ b/docs/Common/Structs/index.md @@ -1130,3 +1130,16 @@ There are no defined parameters for this struct |hybridAppPreference|[Common.HybridAppPreference](../enums/#hybridapppreference)|false||Specifies the user preference to use one specific app type or all available types| |endpoint|String|false|maxlength: 65535|If specified, which Core uses a client implementation of the connection type and attempts to connect to the endpoint when this app is selected (activated).
If omitted, Core won't attempt to connect as the app selection (activation) is managed outside of Core. Instead it uses a server implementation of the connection type and expects the app to connect| +### SeatStatus + +|Name|Type|Mandatory|Additional|Description| +|:---|:---|:--------|:---------|:----------| +|seatLocation|Common.SeatLocation|true||| +|conditionActive|Boolean|true||| + +### SeatOccupancy + +|Name|Type|Mandatory|Additional|Description| +|:---|:---|:--------|:---------|:----------| +|seatsOccupied|Common.SeatStatus|false|array: true
minsize: 0
maxsize: 100|Seat status array containing location and whether the seats are occupied.| +|seatsBelted|Common.SeatStatus|false|array: true
minsize: 0
maxsize: 100|Seat status array containing location and whether the seats are belted.| diff --git a/docs/VehicleInfo/GetVehicleData/index.md b/docs/VehicleInfo/GetVehicleData/index.md index 8305013eb..115d8a9c2 100644 --- a/docs/VehicleInfo/GetVehicleData/index.md +++ b/docs/VehicleInfo/GetVehicleData/index.md @@ -70,6 +70,7 @@ The HMI will have to update this field if the user chooses to reset this value ( |engineOilLife|Boolean|false|| |electronicParkBrakeStatus|Boolean|false|| |cloudAppVehicleID|Boolean|false|| +|seatOccupancy|Boolean|false|| ### Response @@ -107,6 +108,7 @@ The HMI will have to update this field if the user chooses to reset this value ( |engineOilLife|Float|false|minvalue: 0
maxvalue: 100| |electronicParkBrakeStatus|[Common.ElectronicParkBrakeStatus](../../common/enums/#electronicparkbrakestatus)|false|| |cloudAppVehicleID|String|false|| +|seatOccupancy|[Common.SeatOccupancy](../../common/structs/#seatoccupancy)|false| ### Sequence Diagrams diff --git a/docs/VehicleInfo/OnVehicleData/index.md b/docs/VehicleInfo/OnVehicleData/index.md index 5d1b1df3d..e280f0837 100644 --- a/docs/VehicleInfo/OnVehicleData/index.md +++ b/docs/VehicleInfo/OnVehicleData/index.md @@ -63,6 +63,7 @@ The HMI will have to update this field if the user chooses to reset this value ( |engineOilLife|Float|false|minvalue: 0
maxvalue: 100| |electronicParkBrakeStatus|[Common.ElectronicParkBrakeStatus](../../common/enums/#electronicparkbrakestatus)|false|| |cloudAppVehicleID|String|false|| +|seatOccupancy|[Common.SeatOccupancy](../../common/structs/#seatoccupancy)|false|| ### Sequence Diagrams diff --git a/docs/VehicleInfo/SubscribeVehicleData/index.md b/docs/VehicleInfo/SubscribeVehicleData/index.md index b6503292f..c0d8de0a7 100644 --- a/docs/VehicleInfo/SubscribeVehicleData/index.md +++ b/docs/VehicleInfo/SubscribeVehicleData/index.md @@ -44,6 +44,7 @@ Purpose |engineOilLife|Boolean|false|| |electronicParkBrakeStatus|Boolean|false|| |cloudAppVehicleID|Boolean|false|| +|seatOccupancy|Boolean|false|| ### Response @@ -93,6 +94,7 @@ For vehicle data items from RPCSpec, `oemCustomDataType` will be omitted, and `d |engineOilLife|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| |electronicParkBrakeStatus|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| |cloudAppVehicleID|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| +|seatOccupancy|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false| ### Sequence Diagrams diff --git a/docs/VehicleInfo/UnsubscribeVehicleData/index.md b/docs/VehicleInfo/UnsubscribeVehicleData/index.md index 22a0978d2..ce29350b4 100644 --- a/docs/VehicleInfo/UnsubscribeVehicleData/index.md +++ b/docs/VehicleInfo/UnsubscribeVehicleData/index.md @@ -45,6 +45,7 @@ Purpose |engineOilLife|Boolean|false|| |electronicParkBrakeStatus|Boolean|false|| |cloudAppVehicleID|Boolean|false|| +|seatOccupancy|Boolean|false|| ### Response @@ -94,6 +95,7 @@ For vehicle data items from RPCSpec, `oemCustomDataType` will be omitted, and `d |engineOilLife|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| |electronicParkBrakeStatus|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| |cloudAppVehicleID|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| +|seatOccupancy|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false| ### Sequence Diagrams From 9f079901750f13c3b58ee100140ccc0b82bcf90d Mon Sep 17 00:00:00 2001 From: "Khrystyna Dubovyk (GitHub)" Date: Tue, 12 Jan 2021 12:40:58 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Jacob Keeler --- docs/VehicleInfo/SubscribeVehicleData/index.md | 2 +- docs/VehicleInfo/UnsubscribeVehicleData/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/VehicleInfo/SubscribeVehicleData/index.md b/docs/VehicleInfo/SubscribeVehicleData/index.md index 4647dfc0c..0a3ab10d2 100644 --- a/docs/VehicleInfo/SubscribeVehicleData/index.md +++ b/docs/VehicleInfo/SubscribeVehicleData/index.md @@ -104,7 +104,7 @@ If multiple applications are trying to restore the same subscription, SDL should |stabilityControlsStatus|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| |windowStatus|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| |handsOffSteering|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| -|seatOccupancy|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false| +|seatOccupancy|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| ### Sequence Diagrams diff --git a/docs/VehicleInfo/UnsubscribeVehicleData/index.md b/docs/VehicleInfo/UnsubscribeVehicleData/index.md index 8c15ea7e1..52c22a0f7 100644 --- a/docs/VehicleInfo/UnsubscribeVehicleData/index.md +++ b/docs/VehicleInfo/UnsubscribeVehicleData/index.md @@ -104,7 +104,7 @@ In the case during data resumption with multiple applications, a subscription is |stabilityControlsStatus|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| |windowStatus|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| |handsOffSteering|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| -|seatOccupancy|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false| +|seatOccupancy|[Common.VehicleDataResult](../../common/structs/#vehicledataresult)|false|| ### Sequence Diagrams