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/Remote Control - Radio and Climate Parameter Update #2191

Merged

Conversation

LuxoftAKutsan
Copy link
Contributor

ATF Test Scripts to check smartdevicelink/sdl_core#2793

This PR is ready for review.

Summary

This proposal changes the minimum index of HD radio sub-channels from 1 to 0.
In addition, we propose to add a new parameter climateEnable to ClimateControlData which will allow an application to power climate control on or off.

ATF version

develop (checked on smartdevicelink/sdl_atf@109d1cb)

CLA

@LuxoftAKutsan LuxoftAKutsan force-pushed the feature/remote_control_radio_and_climate_parameter_update branch from c359cc7 to 07cd5a2 Compare May 22, 2019 12:59
@LuxoftAKutsan LuxoftAKutsan changed the title Scripts for RC radio and climate parameter update. [SDL 0213]- Remote Control - Radio and Climate Parameter Update May 22, 2019
@IGapchuk IGapchuk changed the title [SDL 0213]- Remote Control - Radio and Climate Parameter Update Feature/Remote Control - Radio and Climate Parameter Update May 23, 2019
Copy link

@yang1070 yang1070 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ford has reviewed, run the test scripts and approved this PR.


--[[ Local Functions ]]
local function notificationProcessedSuccessfully(pValue)
function commonRC.getAnotherModuleControlData()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not familiar with this syntax. Does this overwrite the definition of the common getAnotherModuleControlData()?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JackLivio Correct. When notificationProcessedSuccessfully() function is executed implementation of commonRC.getAnotherModuleControlData() will be overwritten. And new code will be used till the end of the script.

@Jack-Byrne
Copy link
Collaborator

Jack-Byrne commented Jun 20, 2019

Saw a failure with this test ./test_scripts/RC/CLIMATE_RADIO/SetInteriorVehicleData/023_availableHDs_hdChannel_out_of_upper_bound.lua

[13:12:16,168] SetInteriorVehicleData_set_incorrect_values_for_hdChannel_as_outOfLowerBoundValue     [FAIL] (10050 ms)
 Response to 5: ValidIf: 
payload.resultCode: expected: INVALID_DATA, actual value: GENERIC_ERROR
 HMI call RC.SetInteriorVehicleData: Times: The most allowed occurences boundary exceed

Looking into the cause.

@Jack-Byrne
Copy link
Collaborator

I believe that the test is sending a 0 as a lower out of bound value and the test is expecting it to fail. However the changes for this feature should allow 0 to be sent for an hdChannel.

@Jack-Byrne
Copy link
Collaborator

Note i updated the syncMessage version of the apps in the config.lua to 6.0 before running the tests.

@dboltovskyi dboltovskyi force-pushed the feature/remote_control_radio_and_climate_parameter_update branch from b56a7df to 9ac5c30 Compare June 21, 2019 14:51
@dboltovskyi
Copy link
Contributor

@JackLivio
Thank you for this finding.
Unfortunately last commit Update regarding changed min value for hdChannels was made by mistake.
It changed min value for hdChannel parameter to 1 though it should be 0 as before.

Now this commit is removed and additionally PR is re-based onto HEAD of develop.
We also found inconsistency between MOBILE and HMI APIs regarding hdChannel parameter which is fixed in smartdevicelink/sdl_core@0099496

@Jack-Byrne
Copy link
Collaborator

@dboltovskyi Thank you, re-running tests now.

@Jack-Byrne Jack-Byrne merged commit a24b574 into develop Jun 21, 2019
@jacobkeeler jacobkeeler deleted the feature/remote_control_radio_and_climate_parameter_update branch February 2, 2021 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants