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

Dev/adis16475 tests #517

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Dev/adis16475 tests #517

merged 2 commits into from
Feb 15, 2024

Conversation

rbolboac
Copy link
Contributor

@rbolboac rbolboac commented Jan 17, 2024

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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 A
  • Test B

Test Configuration: A

Hardware:ADIS16505-2 with RPI4
OS:Kuiper with ADI Kernel 6.1.54

Test Configuration: B

Hardware:ADIS16505-2 with SDPK1
OS:No-OS master branch

Documentation

If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have signed off all commits and they contain "Signed-off by: "
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@rbolboac rbolboac self-assigned this Jan 17, 2024
Copy link

github-actions bot commented Jan 17, 2024

Unit Test Results

1 414 tests  +12      266 ✔️ +11   9m 15s ⏱️ -2s
       1 suites ±  0   1 148 💤 +  1 
       1 files   ±  0          0 ±  0 

Results for commit 5a23b85. ± Comparison against base commit 69b2d7a.

♻️ This comment has been updated with latest results.

@rbolboac rbolboac force-pushed the dev/adis16475_tests branch 3 times, most recently from 3fc35c5 to 762bfa4 Compare January 23, 2024 09:08
Copy link

Generated documentation for this PR is available at Link

@rbolboac rbolboac marked this pull request as ready for review January 23, 2024 09:23
@rbolboac rbolboac requested a review from tfcollins January 23, 2024 10:15
@rbolboac
Copy link
Contributor Author

Hello @tfcollins ,
Any remarks here?
Thank you!

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
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

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

Copy link
Contributor Author

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

@rbolboac rbolboac force-pushed the dev/adis16475_tests branch from 762bfa4 to 5a23b85 Compare February 2, 2024 13:00
@rbolboac
Copy link
Contributor Author

Hello @tfcollins ,

Any feedback after new changes?

Thank you!

@tfcollins tfcollins merged commit a5eb253 into main Feb 15, 2024
54 checks passed
@tfcollins tfcollins deleted the dev/adis16475_tests branch February 15, 2024 15:12
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