-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Packet RSSI formula from datasheet section 5.5.5
- Loading branch information
1 parent
30a07a3
commit 68f403b
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68f403b
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.
Had to revert this pull request, since it seems that this is not how to do it according to the datasheet. The correction of adding PacketSNR*0.25 should only be applied when the packet is below the noise floor, hence when pkt_snr < 0, you have it the other way around in this code ;)
Also, as I read the datasheet, the 16/16*rssi slope correction in the datasheet should be applied only when RSSI is above -100 dBm, and here you do the correction when pkt_snr < 0.
But thanks so much for pointing it out anyway. I think I choose to forego the slope adjustment originally, since it's not adding that much precision anyways, but I'll add it now anyways, since I just looked it all through.