-
Notifications
You must be signed in to change notification settings - Fork 108
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
Dev/adis16475 tests #517
Dev/adis16475 tests #517
Conversation
3fc35c5
to
762bfa4
Compare
Generated documentation for this PR is available at Link |
Hello @tfcollins , |
test/test_adis16475_p.py
Outdated
adis16475.sample_rate = 2000.0 / (i + 1) | ||
assert adis16475.sample_rate >= (2000.0 / (i + 1) - 1) | ||
assert adis16475.sample_rate <= (2000.0 / (i + 1) + 1) | ||
adis16475.sample_rate = 2000.0 |
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.
Is this needed for downstream tests? If so either use a fixture to create a test dependency
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 forgot I was already testing the sample rate in test_adis16475_attr, I will remove this.
if self._ctrl is not None: | ||
print("Fond device = " + i + ". Will use this device instead.") | ||
break | ||
|
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.
Need a check to make sure a device is found
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 added an exception in case no device is found
Signed-off-by: Ramona Gradinariu <[email protected]>
Signed-off-by: Ramona Gradinariu <[email protected]>
762bfa4
to
5a23b85
Compare
Hello @tfcollins , Any feedback after new changes? Thank you! |
Description
Add new tests for adis16475 driver and change the xml to the latest version of the drivers to include also the delta channels.
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: A
Test Configuration: B
Documentation
If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.
Checklist: