From bd002e5a144f209e42c97b64fea9a05a2e513b28 Mon Sep 17 00:00:00 2001 From: geeksville Date: Thu, 30 Apr 2020 12:34:49 -0700 Subject: [PATCH] change rx_snr to a float, by defining a new field --- mesh.proto | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mesh.proto b/mesh.proto index de9eb46..aea3cf4 100644 --- a/mesh.proto +++ b/mesh.proto @@ -216,10 +216,6 @@ message MeshPacket { /// of reception) uint32 rx_time = 4; - /// Never sent over the radio links. Set during reception to indicate the SNR - /// of this packet. Used to collect statistics on current link waulity. - sint32 rx_snr = 5; - /** A unique ID for this packet. Always 0 for no-ack packets or non broadcast packets (and therefore take zero bytes of space). Otherwise a unique ID for @@ -230,6 +226,11 @@ message MeshPacket { any ACK or the completion of a mesh broadcast flood). */ uint32 id = 6; + + /// *Never* sent over the radio links. Set during reception to indicate the + /// SNR + /// of this packet. Used to collect statistics on current link waulity. + float rx_snr = 7; } /// Shared constants between device and phone @@ -355,7 +356,7 @@ message NodeInfo { /// Returns the Signal-to-noise ratio (SNR) of the last received message, as /// measured by the receiver. return SNR of the last received message in dB - int32 snr = 5; + float snr = 7; /// Returns the last measured frequency error. /// The LoRa receiver estimates the frequency offset between the receiver @@ -365,7 +366,7 @@ message NodeInfo { /// local receiver's oscillator. Apparent errors may be due to the /// transmitter, the receiver or both. \return The estimated centre frequency /// offset in Hz of the last received message. - int32 frequency_error = 6; + // int32 frequency_error = 6; } /**