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

capsules: add analog_sensors.rs #1040

Closed
wants to merge 1 commit into from
Closed

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Jun 27, 2018

This is a capsule that provides the sensor HILs for simple analog sensors that only require a single ADC pin.

Blocked on ADC HIL updates.

Testing Strategy

Todo. My plan is test things on the ADC when everything isn't in a thousand separate branches.

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make formatall.

@bradjc bradjc added the blocked Waiting on something, like a different PR or a dependency. label Jun 27, 2018
@bradjc
Copy link
Contributor Author

bradjc commented Jul 6, 2018

I updated this with the changes to the ADC HIL, but I still need to test it on actual hardware.

/// Callbacks from the ADC driver
impl<A: hil::adc::Adc> hil::adc::Client for AnalogLightSensor<'a, A> {
fn sample_ready(&self, sample: u16) {
// TODO: calculate the actual light reading.
Copy link
Member

Choose a reason for hiding this comment

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

Are these TODOs the things that are blocking on the ADC HIL PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They were, but now they are blocking on testing.

This is a capsule that provides the sensor HILs for simple analog
sensors that only require a single ADC pin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Waiting on something, like a different PR or a dependency.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants