Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/sdl 0262 new vehicle data seat occupancy #3585

31 changes: 31 additions & 0 deletions src/appMain/sdl_preloaded_pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@
"rpm",
"steeringWheelAngle",
"gearStatus",
"seatOccupancy",
"handsOffSteering"
]
},
Expand All @@ -564,6 +565,7 @@
"rpm",
"steeringWheelAngle",
"gearStatus",
"seatOccupancy",
"handsOffSteering"
]
},
Expand All @@ -583,6 +585,7 @@
"rpm",
"steeringWheelAngle",
"gearStatus",
"seatOccupancy",
"handsOffSteering"
]
},
Expand All @@ -602,6 +605,7 @@
"rpm",
"steeringWheelAngle",
"gearStatus",
"seatOccupancy",
"handsOffSteering"
]
}
Expand Down Expand Up @@ -4334,6 +4338,33 @@
"type": "Boolean",
"mandatory": false,
"since": "7.0"
},
{
"name": "seatOccupancy",
"key": "OEM_REF_SEAT_OCCUP",
"params": [
{
"name": "seatsOccupied",
"key": "OEM_REF_SEATS_OCCUP",
"type": "SeatStatus",
"array": true,
"minsize": 0,
"maxsize": 100,
"mandatory": false
},
{
"name": "seatsBelted",
"key": "OEM_REF_SEATS_BELT",
"type": "SeatStatus",
"array": true,
"minsize": 0,
"maxsize": 100,
"mandatory": false
}
],
"type": "Struct",
"mandatory": false,
"since": "7.1"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ extern const char* engine_oil_life;
extern const char* oem_custom_data_type;
extern const char* window_status;
extern const char* hands_off_steering;
extern const char* seat_occupancy;

// app services
extern const char* app_service_manifest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ std::pair<std::string, mobile_apis::VehicleDataType::eType>
mobile_apis::VehicleDataType::VEHICLEDATA_ENGINEOILLIFE),
std::make_pair(strings::window_status,
mobile_apis::VehicleDataType::VEHICLEDATA_WINDOWSTATUS),
std::make_pair(strings::seat_occupancy,
mobile_apis::VehicleDataType::VEHICLEDATA_SEATOCCUPANCY),
std::make_pair(
strings::hands_off_steering,
mobile_apis::VehicleDataType::VEHICLEDATA_HANDSOFFSTEERING)};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ const char* engine_oil_life = "engineOilLife";
const char* oem_custom_data_type = "oemCustomDataType";
const char* window_status = "windowStatus";
const char* hands_off_steering = "handsOffSteering";
const char* seat_occupancy = "seatOccupancy";

// app services
const char* app_service_manifest = "appServiceManifest";
Expand Down
2 changes: 1 addition & 1 deletion src/components/application_manager/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ if (ENABLE_LOG)
list(APPEND LIBRARIES expat -L${EXPAT_LIBS_DIRECTORY})
endif()

file(COPY ${CMAKE_SOURCE_DIR}/src/appMain/sdl_preloaded_pt.json DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY smartDeviceLink_test2.ini DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY sdl_preloaded_pt.json DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY sdl_pt_update.json DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

add_custom_command(
Expand Down
Loading