mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
support adv loc policy
This commit is contained in:
parent
752f04d4ec
commit
21cbed070a
3 changed files with 21 additions and 7 deletions
|
|
@ -74,6 +74,7 @@ class MessageReader:
|
|||
self_info["public_key"] = data[4:36].hex()
|
||||
self_info["adv_lat"] = int.from_bytes(data[36:40], byteorder='little', signed=True)/1e6
|
||||
self_info["adv_lon"] = int.from_bytes(data[40:44], byteorder='little', signed=True)/1e6
|
||||
self_info["adv_loc_policy"] = data[45]
|
||||
self_info["telemetry_mode_env"] = (data[46] >> 4) & 0b11
|
||||
self_info["telemetry_mode_loc"] = (data[46] >> 2) & 0b11
|
||||
self_info["telemetry_mode_base"] = (data[46]) & 0b11
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue