Skip to content

Add Altimeter trait and default implementaiton #30

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

Merged
merged 2 commits into from
Dec 16, 2016

Conversation

lily-mara
Copy link

This creates a trait for Altimeter sensors, providing altitude readings in meters. There is also a default implementation specified for any type that implements Barometer. I also fixed some documentation that implied some functions had different return types than what they really do.

Nate Mara added 2 commits December 15, 2016 12:06
This creates a trait for Altimeter sensors, providing altitude readings in meters.
There is also a default implementation specified for any type that implements Barometer.
Some of the docstrings implied that the temperature_celdius, and pressure_kpa functions returned std::Options, when they really return std::Results.
@posborne
Copy link
Member

Thanks, we'll probably be moving some of these traits out of this library into separate crates at a point, but I see no reason not to merge this until I get around to making those other changes. See #28

@posborne posborne merged commit bc12c4e into rust-embedded:master Dec 16, 2016
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.

2 participants