From 3b16c075d937964151f4a965cfebcbd0d0ba2387 Mon Sep 17 00:00:00 2001 From: gsd Date: Sat, 14 Feb 2026 22:57:24 +0300 Subject: [PATCH] pf --- mesht_device.py | 2 +- protobufs_extra/position_proto.py | 14 +++++++------- protobufs_extra/telemetry_proto.py | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/mesht_device.py b/mesht_device.py index 6a33d9b..5328dd4 100644 --- a/mesht_device.py +++ b/mesht_device.py @@ -91,7 +91,7 @@ NODEINFO_SCHEMA = [ (DEVICE_METRICS_SCHEME, "device_metrics", 6), ("uint32", "channel", 7), ("bool", "via_mqtt", 8), - ("uint32", "hops_away", 9), + ("scalar", "hops_away", 9, "uint32"), ("bool", "is_favorite", 10), ("bool", "is_ignored", 11), ("bool", "is_key_manually_verified", 12), diff --git a/protobufs_extra/position_proto.py b/protobufs_extra/position_proto.py index 0896a61..86614e7 100644 --- a/protobufs_extra/position_proto.py +++ b/protobufs_extra/position_proto.py @@ -14,22 +14,22 @@ ALT_SOURCE_ENUM = { } POSITION_SCHEME = [ - ("sfixed32", "latitude_i", 1), - ("sfixed32", "longitude_i", 2), - ("int32", "altitude", 3), + ("scalar", "latitude_i", 1, "sfixed32"), + ("scalar", "longitude_i", 2, "sfixed32"), + ("scalar", "altitude", 3, "int32"), ("fixed32", "time", 4), ("int32", "location_source", 5), ("int32", "altitude_source", 6), ("fixed32", "timestamp", 7), ("int32", "timestamp_millis_adjust", 8), - ("sint32", "altitude_hae", 9), - ("sint32", "altitude_geoidal_separation", 10), + ("scalar", "altitude_hae", 9, "sint32"), + ("scalar", "altitude_geoidal_separation", 10, "sint32"), ("uint32", "PDOP", 11), ("uint32", "HDOP", 12), ("uint32", "VDOP", 13), ("uint32", "gps_accuracy", 14), - ("uint32", "ground_speed", 15), - ("uint32", "ground_track", 16), + ("scalar", "ground_speed", 15, "uint32"), + ("scalar", "ground_track", 16, "uint32"), ("uint32", "fix_quality", 17), ("uint32", "fix_type", 18), ("uint32", "sats_in_view", 19), diff --git a/protobufs_extra/telemetry_proto.py b/protobufs_extra/telemetry_proto.py index feb3f3d..62ce1f8 100644 --- a/protobufs_extra/telemetry_proto.py +++ b/protobufs_extra/telemetry_proto.py @@ -1,10 +1,10 @@ DEVICE_METRICS_SCHEME = [ - ("uint32", "battary_level", 1), - ("float", "voltage", 2), - ("float", "channel_utilization", 3), - ("float", "air_util_tx", 4), - ("uint32", "uptime_seconds", 5) + ("scalar", "battary_level", 1, "uint32"), + ("scalar", "voltage", 2, "float"), + ("scalar", "channel_utilization", 3, "float"), + ("scalar", "air_util_tx", 4, "float"), + ("scalar", "uptime_seconds", 5, "uint32") ] ENVIRONMENT_METRICS_SCHEME = [