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/gps shift support #2712

Conversation

mkorniichuk
Copy link
Contributor

@mkorniichuk mkorniichuk commented Oct 23, 2018

Fixes #2639

This PR is ready for review.

Risk

This PR makes major API changes.

Testing Plan

Unit testing.

Summary

Current commit contains changes for MOBILE_API and HMI_API.
For the China region, GPS data have to be corrected in order to
bridge the gap between different standards used.

Changelog

Breaking Changes
  • API changes introduce "shifted" flag for GPS data which defines whether the GPS data
    (latitude, longitude, attitude, timestamp) raw or already adjusted.

Tasks Remaining:

  • Unit tests

CLA

Current commit contains changes for MOBILE_API and HMI_API.
For the China region, GPS data have to be corrected in order to
bridge the gap between different standards used. API changes
introduce "shifted" flag for GPS data which defines whether the GPS data
(latitude, longitude, attitude, timestamp) raw or already adjusted.

The new parameter will let the phone app know, whether the data
have to be compensated.
Added SisData structure to rc_module_constants.
Extended GetInteriorVehicleDataRequestTest with GPS data.
smart_objects::SmartObject sis_data;
smart_objects::SmartObject gps_data;

const char kGpsShifted[] = "shifted";
Copy link
Contributor

Choose a reason for hiding this comment

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

@mkorniichuk propose to move this constant to the file namespace. Otherwise it's better to rename it to shifted_param as for local variables we have a different naming rules

Added GPSData structure to rc_module_constants.
@mkorniichuk mkorniichuk removed the request for review from Itileda November 7, 2018 11:01
@mkorniichuk mkorniichuk merged commit 8e423c1 into smartdevicelink:feature/gps_shift_support Nov 7, 2018
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