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

nit(rename): Renames the encoded live speed properties #2998

Merged
merged 5 commits into from
Apr 14, 2021

Conversation

purew
Copy link
Contributor

@purew purew commented Apr 13, 2021

to make it clear that the raw values are usually not what you want.
They are not measured in kph, but have on several occasions been
used in that way due to the non-obvious naming.

This rename adds encoded_ to the speed properties to make it
clearer that the value within may not be what you actually want.

There already are getter-functions defined which should be preferred
in most use-cases

to make it clear that the raw values are usually not what you want.
They are not measured in kph, but have on several occasions been
used in that way due to the non-obvious naming.

This rename adds `encoded_` to the speed properties to make it
clearer that the value within may not be what you actually want.

There already are getter-functions defined which should be preferred
in most use-cases
@purew purew force-pushed the nit-rename-live-speed-property branch from 5a42928 to 818db24 Compare April 13, 2021 22:36
}

json::MapPtr json() const volatile {
auto live_speed = json::map({});
if (speed_valid()) {
live_speed->emplace("overall_speed", static_cast<uint64_t>(get_overall_speed()));
live_speed->emplace("overall_encoded_speed", static_cast<uint64_t>(get_overall_speed()));
Copy link
Member

Choose a reason for hiding this comment

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

This one isn't encoded, it's accessed via the getter

Copy link
Member

Choose a reason for hiding this comment

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

its also a breaking change to the locate API so we probably shouldnt change it

@kevinkreiser
Copy link
Member

@purew was the pybind update on purpose?

@purew
Copy link
Contributor Author

purew commented Apr 13, 2021

@purew was the pybind update on purpose?

Nope! Mistake, one sec.

@purew
Copy link
Contributor Author

purew commented Apr 14, 2021

@kevinkreiser @danpat any last thoughts on this?

@danpat
Copy link
Member

danpat commented Apr 14, 2021

@purew just needs a changelog entry :-)

@purew purew merged commit 5d8ffb1 into master Apr 14, 2021
@purew purew deleted the nit-rename-live-speed-property branch April 14, 2021 19:55
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.

None yet

3 participants