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

Fix metric measurements in CarPlay #1854

Merged
merged 1 commit into from
Nov 22, 2018
Merged

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Nov 22, 2018

In CarPlay, the meter is once again defined as the distance such that the speed of light in vacuum c is 299 792 458 when expressed in meters per second, where the second is defined in terms of the cesium frequency ΔνCs. Likewise with the centimeter and millimeter.

de anza

Fixes #1853.

/cc @frederoni @JThramer

@1ec5 1ec5 added bug Something isn’t working topic: instructions topic: localization CarPlay Bugs, improvements and feature requests on Apple CarPlay labels Nov 22, 2018
@1ec5 1ec5 added this to the v0.25.0 milestone Nov 22, 2018
@1ec5 1ec5 self-assigned this Nov 22, 2018
@1ec5 1ec5 requested a review from frederoni November 22, 2018 13:35
@1ec5 1ec5 force-pushed the 1ec5-carplay-meter-redefinition-1853 branch from 27854ca to a77f5f3 Compare November 22, 2018 13:45
case .meter:
return Measurement(value: distance.kilometers / 1e3, unit: .meters)
return Measurement(value: distance.kilometers * 1e3, unit: .meters)

This comment was marked as resolved.

@1ec5 1ec5 force-pushed the 1ec5-carplay-meter-redefinition-1853 branch from a77f5f3 to 84f5a98 Compare November 22, 2018 14:03
@1ec5 1ec5 force-pushed the 1ec5-carplay-meter-redefinition-1853 branch from 84f5a98 to 2cd1f15 Compare November 22, 2018 14:05
@1ec5 1ec5 merged commit defd734 into master Nov 22, 2018
@1ec5 1ec5 deleted the 1ec5-carplay-meter-redefinition-1853 branch November 22, 2018 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working CarPlay Bugs, improvements and feature requests on Apple CarPlay topic: instructions topic: localization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants