sdl_java_suite
sdl_java_suite copied to clipboard
[SDL 0227] Add Supported RGB Colors to Light Capabilities
Proposal: Add Supported RGB Colors to Light Capabilities
Currently, RC feature
LIGHTmodule type has a parameter calledrgbColorSpaceAvailableinLightCapabilitiesdata structure to indicate whether the specified light withnamesupports changing color or not. However, the capability does not have any information about what RGB colors are supported by the vehicle. Mobile applications must obtain valid RGB colors by a trial and error process or other means. This proposal adds a supported RGB color array to theLightCapabilitiesso that an application can know and/or show supported colors to the user and use a valid RGB color in asetInteriorVehicleDatarequest to change the color of a light.
Review: https://github.com/smartdevicelink/sdl_evolution/issues/720
Steering Committee Decision:
The Steering Committee voted to accept this proposal with the following revisions:
- Change
RGBColorsSupportedtoRGBColorRange - Change
supportedRGBColorstosupportedRGBColorRanges - Update
RGBColorRangesstruct description to include the following cases:- If only minimums are included for R, G, and B, it is a single color
- If a max is included on any R, G, B color, it is a range of color
- If two or more colors contain both min and max, those two colors can be shaded together within the ranges supplied
The proposal .md file was updated to reflect these revisions on 5/16/19.