Telemetry tweaks (#1315)

* Update protos

* Removed battery level from position packets

* Send internal metrics

* Handle telemetry on node info for now

* Fixes

* Default telemetry to enabled and same interval as position

* Fixes for lots of interval issues

* Fixed interval

* Regen

* Cleanup

* Newline

* Update proto ref

* Fixed missing metric and updated power level to uint

* Regen
This commit is contained in:
Ben Meadors
2022-03-23 20:46:39 +00:00
committed by GitHub
parent e97bd4f9f9
commit 47524d58d7
4 changed files with 14 additions and 14 deletions

View File

@@ -12,7 +12,7 @@
/* Struct definitions */
typedef struct _Telemetry {
uint32_t time;
int32_t battery_level;
uint32_t battery_level;
float channel_utilization;
float air_util_tx;
bool router_heartbeat;
@@ -49,7 +49,7 @@ extern "C" {
/* Struct field encoding specification for nanopb */
#define Telemetry_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, FIXED32, time, 1) \
X(a, STATIC, SINGULAR, INT32, battery_level, 2) \
X(a, STATIC, SINGULAR, UINT32, battery_level, 2) \
X(a, STATIC, SINGULAR, FLOAT, channel_utilization, 3) \
X(a, STATIC, SINGULAR, FLOAT, air_util_tx, 4) \
X(a, STATIC, SINGULAR, BOOL, router_heartbeat, 5) \
@@ -68,7 +68,7 @@ extern const pb_msgdesc_t Telemetry_msg;
#define Telemetry_fields &Telemetry_msg
/* Maximum encoded size of messages (where known) */
#define Telemetry_size 58
#define Telemetry_size 53
#ifdef __cplusplus
} /* extern "C" */