-
Notifications
You must be signed in to change notification settings - Fork 19
Introduce radio manager+factory for RFM9x #161
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
Conversation
… into rfm9x-factory-manager
41f54ee
to
f019039
Compare
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 don't think I'm going to get the test coverage any higher. With the free version of SonarQube I cannot create my own "quality gate" with a lower test coverage required. We'll have to either:
- live with these failures until we add more testing
- remove code coverage reporting in SonarQube
- stop using SonarQube
As much as I dislike seeing these failures, they're a good push. I even went back and added a few more tests to try and satisfy it... I got close.
I'm pretty new to these DevOps tools, but would be perhaps consider self-hosting the SonarQube Community Edition to get around this? It's possible we could set up an environment in one of our labs to oversee this kind of stuff. |
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.
This PR looks great @nateinaction! I only have 1 requested change on that low_datarate_optimize
thing that needs to be updated before merging. Most of my other comments are more just food for thought that we can wrench on with future PRs.
Looking forward to seeing this get into the main codebase!
100% can be done. I'm not sure if it's going to jump to the top of my priority list though. I think we can keep bring up test coverage pretty quickly so it's a temporary annoyance. We're already above 10% on |
Co-authored-by: Michael Pham <[email protected]>
… into rfm9x-factory-manager
…ig into multiple files
|
@Mikefly123 Thanks for your patience, this is ready for rereview. I addressed feedback on I have replied with questions on your other feedback to hopefully help me understand your mindset. Ultimately I think we are aligned that there are still painpoints and that we are introducing painpoint for satellite operators with extractions like these. I know we can make progress on resolving some of those but I'll need help where I lack understanding. |
Hey @nateinaction! Yeah I saw the comments come in yesterday and haven't quite gotten around to replying to them all yet. Sorry to stall getting this PR through, but I can commit to getting back on the horse with this over the weekend after we get through our big design review for SCALES tomorrow! |
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.
Okay this all looks good to me!
I am on travel right now, so I don't have the hardware to do and end to end test. If we can quickly verify that the new code behaves and transmits as expected let's merge this thing!
Summary
This PR introduces radio factory and radio manager to handle calls to the RFM9x radio.
The factory handles all calls directly interacting with the adafruit library while the manager holds the instance of the radio and manage interactions between the radio and its callers.
How was this tested