summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-06-01 01:42:43 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-06-01 01:42:43 +0700
commit6e9808662f66f62d6c2c03396e48b966d5c43eaa (patch)
tree9284a14179bbb4357bb8ac55fce64d0fee7e0b76 /src
parent3655350992669ace59392d0cf185ecd4c7996ba8 (diff)
trx_toolkit/data_msg.py: fix: extend RSSI value range to [-47..-120]
Diffstat (limited to 'src')
-rw-r--r--src/target/trx_toolkit/data_msg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/trx_toolkit/data_msg.py b/src/target/trx_toolkit/data_msg.py
index 3393ddb..da109d9 100644
--- a/src/target/trx_toolkit/data_msg.py
+++ b/src/target/trx_toolkit/data_msg.py
@@ -294,8 +294,10 @@ class DATAMSG_L12TRX(DATAMSG):
class DATAMSG_TRX2L1(DATAMSG):
# Constants
HDR_LEN = 8
+
+ # rxlev2dbm(0..63) gives us [-110..-47], plus -10 dbm for noise
RSSI_MIN = -120
- RSSI_MAX = -50
+ RSSI_MAX = -47
# Min and max values of int16_t
TOA256_MIN = -32768