diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-06-01 01:42:43 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-06-01 01:42:43 +0700 |
commit | 6e9808662f66f62d6c2c03396e48b966d5c43eaa (patch) | |
tree | 9284a14179bbb4357bb8ac55fce64d0fee7e0b76 /src/target | |
parent | 3655350992669ace59392d0cf185ecd4c7996ba8 (diff) |
trx_toolkit/data_msg.py: fix: extend RSSI value range to [-47..-120]
Change-Id: I9fce3462db14bd273a1498762cc9293fc888b45a
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/trx_toolkit/data_msg.py | 4 |
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 3393ddb8..da109d95 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 |