RF24 icon indicating copy to clipboard operation
RF24 copied to clipboard

Problems on setting Power level

Open questuk opened this issue 13 years ago • 8 comments

Hi maniacbug,

I have set the nRF24L01+ module power output using this code: radio.setPALevel(RF24_PA_HIGH);

When I then check this using radio.printDetails(); I get Power = LA_MED

Also I believe we are using these mnemonics? "According to 6.5 of the nRF24L01+ specification sheet, they translate to: RF24_PA_MIN=-18dBm, RF24_PA_LOW=-12dBm, RF24_PA_MED=-6dBM, and RF24_PA_HIGH=0dBm."

RF24_PA_MED will not compile as get this message = error: 'RF24_PA_MED' was not declared in this scope. All other mnemonics work.

If I use RF24_PA_MIN ,RF24_PA_LOW, RF24_PA_HIGH, RF24_PA_MAX these all work.

Regards

Gary

questuk avatar Apr 25 '12 08:04 questuk

if you look at line 24 of RF24.h you will see that 'RF24_PA_MED' is not in the list of option, but I imagine you could add it... but also i think the setPALevel function will need changing too

hayden-t avatar Nov 30 '13 23:11 hayden-t

can you fix this maniac ?

hayden-t avatar Dec 04 '13 21:12 hayden-t

This is fixed/corrected in my fork. Has been for a long time. On Dec 4, 2013 3:39 PM, "hayden-t" [email protected] wrote:

can you fix this maniac ?

— Reply to this email directly or view it on GitHubhttps://github.com/maniacbug/RF24/issues/7#issuecomment-29848304 .

gcopeland avatar Dec 06 '13 00:12 gcopeland

thanks for pointing this out, i dont think i would have found out otherwise...

hayden-t avatar Dec 07 '13 03:12 hayden-t

hey gcoepland, i just lookeh at your fork, and i see talk of multicast which is something i was interested in adding too. where can i find out more on this ? you mention in commit comments documentation but your doc link just go back maniacs ? it would be good if you had more detail say a list of what you added somewhere and description of some bits. that one reason i wouldnt have found out you had done this, as there are a few forks of RF24 and its hard to get an overview of what each one is about or has added/changed...

hayden-t avatar Dec 07 '13 04:12 hayden-t

For now, comments are the docs. It's what the online documentation is built from.

Also check out my three blog posts on using these radios.

Http:\Maniacalbits.blogspot.com

hey gcoepland, i just lookeh at your fork, and i see talk of multicast which is something i was interested in adding too. where can i find out more on this ? you mention in commit comments documentation but your doc link just go back maniacs ? it would be good if you had more detail say a list of what you added somewhere and description of some bits. that one reason i wouldnt have found out you had done this, as there are a few forks of RF24 and its hard to get an overview of what each one is about or has added/changed...

— Reply to this email directly or view it on GitHubhttps://github.com/maniacbug/RF24/issues/7#issuecomment-30047169 .

gcopeland avatar Dec 08 '13 14:12 gcopeland

Some info is also here: http://maniacalbits.blogspot.com/2013/04/new-rf24-driver-release-fork.html On Dec 6, 2013 10:06 PM, "hayden-t" [email protected] wrote:

hey gcoepland, i just lookeh at your fork, and i see talk of multicast which is something i was interested in adding too. where can i find out more on this ? you mention in commit comments documentation but your doc link just go back maniacs ? it would be good if you had more detail say a list of what you added somewhere and description of some bits. that one reason i wouldnt have found out you had done this, as there are a few forks of RF24 and its hard to get an overview of what each one is about or has added/changed...

— Reply to this email directly or view it on GitHubhttps://github.com/maniacbug/RF24/issues/7#issuecomment-30047169 .

gcopeland avatar Dec 08 '13 17:12 gcopeland

thanks for this, it is what is was looking for

hayden-t avatar Dec 08 '13 20:12 hayden-t