Skip to content

Commit

Permalink
Merge pull request #2291 from smartdevicelink/feature/new_vehicle_dat…
Browse files Browse the repository at this point in the history
…a_EPB_status

Feature/new vehicle data epb status
  • Loading branch information
Jack-Byrne authored Jul 10, 2018
2 parents f80e75e + 1d72721 commit b7da3b5
Show file tree
Hide file tree
Showing 51 changed files with 300 additions and 12 deletions.
5 changes: 4 additions & 1 deletion src/appMain/sdl_preloaded_pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@
"LIMITED"],
"parameters": ["accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand All @@ -357,6 +358,7 @@
"LIMITED"],
"parameters": ["accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand All @@ -369,6 +371,7 @@
"LIMITED"],
"parameters": ["accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand All @@ -381,6 +384,7 @@
"LIMITED"],
"parameters": ["accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand Down Expand Up @@ -2378,4 +2382,3 @@
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ extern const char* prndl;
extern const char* tire_pressure;
extern const char* odometer;
extern const char* belt_status;
extern const char* electronic_park_brake_status;
extern const char* body_information;
extern const char* device_status;
extern const char* driver_braking;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ std::pair<std::string,
mobile_apis::VehicleDataType::VEHICLEDATA_ODOMETER),
std::make_pair(strings::belt_status,
mobile_apis::VehicleDataType::VEHICLEDATA_BELTSTATUS),
std::make_pair(
strings::electronic_park_brake_status,
mobile_apis::VehicleDataType::VEHICLEDATA_ELECTRONICPARKBRAKESTATUS),
std::make_pair(strings::body_information,
mobile_apis::VehicleDataType::VEHICLEDATA_BODYINFO),
std::make_pair(strings::device_status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ const char* prndl = "prndl";
const char* tire_pressure = "tirePressure";
const char* odometer = "odometer";
const char* belt_status = "beltStatus";
const char* electronic_park_brake_status = "electronicParkBrakeStatus";
const char* body_information = "bodyInformation";
const char* device_status = "deviceStatus";
const char* driver_braking = "driverBraking";
Expand Down
4 changes: 4 additions & 0 deletions src/components/application_manager/test/sdl_preloaded_pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@
"LIMITED"],
"parameters": ["accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand All @@ -309,6 +310,7 @@
"LIMITED"],
"parameters": ["accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand All @@ -321,6 +323,7 @@
"LIMITED"],
"parameters": ["accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand All @@ -333,6 +336,7 @@
"LIMITED"],
"parameters": ["accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand Down
4 changes: 4 additions & 0 deletions src/components/application_manager/test/sdl_pt_update.json
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,7 @@
"parameters" : [
"accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand All @@ -1445,6 +1446,7 @@
"parameters" : [
"accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand All @@ -1457,6 +1459,7 @@
"parameters" : [
"accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand All @@ -1469,6 +1472,7 @@
"parameters" : [
"accPedalPosition",
"beltStatus",
"electronicParkBrakeStatus",
"driverBraking",
"myKey",
"prndl",
Expand Down
71 changes: 60 additions & 11 deletions src/components/interfaces/HMI_API.xml
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,33 @@
</enum>

<!--IVI part-->
<enum name="ElectronicParkBrakeStatus">
<element name="CLOSED">
<description>
Park brake actuators have been fully applied.
</description>
</element>
<element name="TRANSITION">
<description>
Park brake actuators are transitioning to either Apply/Closed or Release/Open state.
</description>
</element>
<element name="OPEN">
<description>
Park brake actuators are released.
</description>
</element>
<element name="DRIVE_ACTIVE">
<description>
When driver pulls the Electronic Park Brake switch while driving "at speed".
</description>
</element>
<element name="FAULT">
<description>
When system has a fault or is under maintenance.
</description>
</element>
</enum>
<enum name="FuelType">
<element name="GASOLINE" />
<element name="DIESEL" />
Expand Down Expand Up @@ -1042,6 +1069,7 @@
<element name="VEHICLEDATA_STEERINGWHEEL" />
<element name="VEHICLEDATA_FUELRANGE" />
<element name="VEHICLEDATA_ENGINEOILLIFE" />
<element name="VEHICLEDATA_ELECTRONICPARKBRAKESTATUS" />
</enum>

<enum name="WiperStatus">
Expand Down Expand Up @@ -1454,21 +1482,21 @@
<element name="UPDATING" />
<element name="UPDATE_NEEDED"/>
</enum>

<enum name="SystemError">
<element name="SYNC_REBOOTED"/>
<element name="SYNC_OUT_OF_MEMMORY" />
</enum>

<enum name="StatisticsType">
<element name="iAPP_BUFFER_FULL"/>
</enum>

<enum name="ConsentSource">
<element name="GUI"/>
<element name="VUI" />
</enum>

<enum name="DeviceState">
<element name="UNKNOWN"/>
<element name="UNPAIRED"/>
Expand All @@ -1481,7 +1509,7 @@
<param name="line2" type="String" mandatory="false"/>
<param name="textBody" type="String" mandatory="false"/>
</struct>

<struct name="PermissionItem">
<param name="name" type="String" mandatory="true">
<description>Code of message of user-friendly text about functional group to be allowed/disallowed</description>
Expand All @@ -1492,7 +1520,7 @@
<param name="allowed" type="Boolean" mandatory="false">
<description>Specifies whether functionality was allowed/disallowed. If ommited - no information about User Consent is yet found for app.</description>
</param>
</struct>
</struct>
<struct name="ServiceInfo">
<param name="url" type="String" mandatory="true">
<description>Get URL based on service type.</description>
Expand Down Expand Up @@ -2028,7 +2056,7 @@
</description>
</param>
<param name="dayColorScheme" type="Common.TemplateColorScheme" mandatory="false"></param>
<param name="nightColorScheme" type="Common.TemplateColorScheme" mandatory="false"></param>
<param name="nightColorScheme" type="Common.TemplateColorScheme" mandatory="false"></param>
</struct>

<struct name="MenuParams">
Expand Down Expand Up @@ -2622,7 +2650,7 @@

<struct name="DateTime">
<param name="millisecond" type="Integer" minvalue="0" maxvalue="999" mandatory="false">
<description>Milliseconds </description>
<description>Milliseconds </description>
</param>
<param name="second" type="Integer" minvalue="0" maxvalue="60" mandatory="false">
<description>Seconds part of time</description>
Expand Down Expand Up @@ -3822,7 +3850,7 @@
<description>ID of application related to this RPC.</description>
</param>
<param name="dayColorScheme" type="Common.TemplateColorScheme" mandatory="false"></param>
<param name="nightColorScheme" type="Common.TemplateColorScheme" mandatory="false"></param>
<param name="nightColorScheme" type="Common.TemplateColorScheme" mandatory="false"></param>
</function>
<function name="SetDisplayLayout" messagetype="response">
<param name="displayCapabilities" type="Common.DisplayCapabilities" mandatory="false">
Expand Down Expand Up @@ -4017,7 +4045,7 @@
</function>
</interface>

<interface name="Navigation" version="1.5.0" date="2017-08-15">
<interface name="Navigation" version="1.5.0" date="2017-08-15">

<function name="IsReady" messagetype="request">
<description>Method is invoked at system startup. Response must provide the information about presence of UI Navigation module and its readiness to cooperate with SDL.</description>
Expand Down Expand Up @@ -4395,6 +4423,9 @@
</param>
<param name="engineOilLife" type="Boolean" mandatory="false">
<description>The estimated percentage of remaining oil life of the engine.</description>
</param>
<param name="electronicParkBrakeStatus" type="Boolean" mandatory="false">
<description>The status of the park brake as provided by Electric Park Brake (EPB) system.</description>
</param>
<!-- Ford Specific Data Items -->
<param name="eCallInfo" type="Boolean" mandatory="false">
Expand Down Expand Up @@ -4480,6 +4511,9 @@
</param>
<param name="engineOilLife" type="Common.VehicleDataResult" mandatory="false">
<description>The estimated percentage of remaining oil life of the engine.</description>
</param>
<param name="electronicParkBrakeStatus" type="Common.VehicleDataResult" mandatory="false">
<description>The status of the park brake as provided by Electric Park Brake (EPB) system.</description>
</param>
<!-- Ford Specific Data Items -->
<param name="eCallInfo" type="Common.VehicleDataResult" mandatory="false">
Expand Down Expand Up @@ -4571,6 +4605,9 @@
</param>
<param name="engineOilLife" type="Boolean" mandatory="false">
<description>The estimated percentage of remaining oil life of the engine.</description>
</param>
<param name="electronicParkBrakeStatus" type="Boolean" mandatory="false">
<description>The status of the park brake as provided by Electric Park Brake (EPB) system.</description>
</param>
<!-- Ford Specific Data Items -->
<param name="eCallInfo" type="Boolean" mandatory="false">
Expand Down Expand Up @@ -4656,6 +4693,9 @@
</param>
<param name="engineOilLife" type="Common.VehicleDataResult" mandatory="false">
<description>The estimated percentage of remaining oil life of the engine.</description>
</param>
<param name="electronicParkBrakeStatus" type="Common.VehicleDataResult" mandatory="false">
<description>The status of the park brake as provided by Electric Park Brake (EPB) system.</description>
</param>
<!-- Ford Specific Data Items -->
<param name="eCallInfo" type="Common.VehicleDataResult" mandatory="false">
Expand Down Expand Up @@ -4746,6 +4786,9 @@
<param name="engineOilLife" type="Boolean" mandatory="false">
<description>The estimated percentage of remaining oil life of the engine.</description>
</param>
<param name="electronicParkBrakeStatus" type="Boolean" mandatory="false">
<description>The status of the park brake as provided by Electric Park Brake (EPB) system.</description>
</param>
<param name="eCallInfo" type="Boolean" mandatory="false">
<description>Emergency Call notification and confirmation data</description>
</param>
Expand Down Expand Up @@ -4832,6 +4875,9 @@
<param name="engineOilLife" type="Float" minvalue="0" maxvalue="100" mandatory="false">
<description>The estimated percentage of remaining oil life of the engine.</description>
</param>
<param name="electronicParkBrakeStatus" type="Common.ElectronicParkBrakeStatus" mandatory="false">
<description>The status of the park brake as provided by Electric Park Brake (EPB) system.</description>
</param>
<param name="eCallInfo" type="Common.ECallInfo" mandatory="false">
<description>Emergency Call notification and confirmation data</description>
</param>
Expand Down Expand Up @@ -4869,7 +4915,7 @@
<description>The instantaneous fuel consumption in microlitres</description>
</param>
<param name="fuelRange" type="Common.FuelRange" minsize="0" maxsize="100" array="true" mandatory="false">
<description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description>
<description>The estimate range in KM the vehicle can travel based on fuel level and consumption</description>
</param>
<param name="externalTemperature" type="Float" minvalue="-40" maxvalue="100" mandatory="false">
<description>The external temperature in degrees celsius</description>
Expand All @@ -4892,6 +4938,9 @@
<param name="beltStatus" type="Common.BeltStatus" mandatory="false">
<description>The status of the seat belts</description>
</param>
<param name="electronicParkBrakeStatus" type="Common.ElectronicParkBrakeStatus" mandatory="false">
<description>The status of the park brake as provided by Electric Park Brake (EPB) system.</description>
</param>
<param name="bodyInformation" type="Common.BodyInformation" mandatory="false">
<description>The body information including power modes</description>
</param>
Expand Down
Loading

0 comments on commit b7da3b5

Please sign in to comment.