-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Added Constant Carrier Wave #609
Conversation
Please rebase on top of current master. |
OK. Done. |
Thanks. Though the PR still contains too many unrelated changes at the moment, can you please revert unrelated changes? |
Not sure how to do that. Here is what i have changed.
RF24.h
nRF24L01.h
|
@waltbar Basically you need to make your changes without modifying the rest of the file. Typically just don't to auto-formatting etc., just edit the file, make the changes then commit to github. Have not tested, but so far would suggest hte following changes:
The code is quickly thrown together so might be syntax errors but the gist is:
With these modifications I think this change would be acceptable, would just need to test a bit. |
…tting register values in stopConstCarrier function
Code prettyfier is the culprit. |
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.
Seems okay to me now, what do you think @TMRh20?
Looking good, the only other change I would suggest would be to move the declaration in the RF24.h file out of the "Deprecated" section and just below the "failureDetected" declaration. Other than that, here are my test results (a pretty distinct result):
CCW Output Code:
Scanner output:
Overview: |
This is pretty cool, it gives great results with the scanner example and makes an easy way to verify signal, so I've already got the example updated to include this functionality. You can switch back and forth between scanning and output of CCW. Going to commit as soon as this code is in. 👍 |
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.
Good!
- Add feature to output a CCW on a specified channel and power level to the scanner example per #609 - Changed scanner example to use Serial prints instead of printf - Removed unneeded delays
Cool |
I have added code to include the constant carrier wave functionality as documented in the data sheet appendix C