-
Notifications
You must be signed in to change notification settings - Fork 123
Ad7191 #598
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
Ad7191 #598
Conversation
Is there any review comments here |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please address lint issues
- Add ad7191 to supported_parts.md
f5204c9
to
09b3bec
Compare
1) Modified to_volts so that it gives the correct value for both unipolar and bipolar mode Signed-off-by: Kantipudi-Supriya <[email protected]>
09b3bec
to
33aeb03
Compare
Hi @tfcollins any comments on this? |
Hi @tfcollins is it good to merge |
|
||
ret = None | ||
|
||
if isinstance(val, np.int32): | ||
ret = val * _scale | ||
ret = (val + _offset) / 1000 * _scale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm alittle confused on the div by 1000. Standard units for IIO is mV. This will make it uV. Is that what you meant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we are getting in mV, This will make to get in Volts
unipolar and bipolar mode
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Documentation
If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.
Checklist: