Closed jlpoltrack closed 8 months ago
I can't tell you what's going on from scratch, but tell that this equation is at the bottom of it all: https://github.com/olliw42/mLRS/blob/main/mLRS/Common/sx-drivers/sx127x_driver.h#L45 (you should find it in the datasheet)
did I maybe got the signs for the 2's wrong?
did I maybe got the signs for the 2's wrong?
I think this is it. For Pout = 17 dBm, outputPower should be set to 15. 17 - (15 - 15) -> 17 - 0 = 17
Current code adds 2 when it should be subtracted.
In the actual power line the sign is reversed as well I think.
yes, looks like it is wrong in the two places
Recently acquired an R9 MX and the Lua returns 13 dBm when choosing the 17 dBm option.
Looking at the code I see a few things I don't understand:
So it seems that when using a 'bare' SX1276, when 17 dBm is asked for you only get 15 dBm but the Lua returns 13 dBm due to the offset.
Should 17 dBm be allowed? Where does this 2 dBm offset come from?