From 9bf93e1cb95bf367933c468a297cf5a1c9e1c6d5 Mon Sep 17 00:00:00 2001 From: Ric In New Mexico <78682404+RicInNewMexico@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:04:31 -0600 Subject: [PATCH] Addition of PowerMetrics to telemetry.proto modified: meshtastic/telemetry.proto --- meshtastic/telemetry.proto | 44 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/meshtastic/telemetry.proto b/meshtastic/telemetry.proto index 041acc5..5914331 100644 --- a/meshtastic/telemetry.proto +++ b/meshtastic/telemetry.proto @@ -58,16 +58,51 @@ message EnvironmentMetrics { float gas_resistance = 4; /* - * Voltage measured + * Voltage measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x) */ float voltage = 5; /* - * Current measured + * Current measured (To be depreciated in favor of PowerMetrics in Meshtastic 3.x) */ float current = 6; } +/* + * Power Metrics (voltage / current / etc) + */ +message PowerMetrics { + /* + * Voltage (Ch1) + */ + float ch1_voltage = 1; + + /* + * Current (Ch1) + */ + float ch1_current = 2; + + /* + * Voltage (Ch2) + */ + float ch2_voltage = 3; + + /* + * Current (Ch2) + */ + float ch2_current = 4; + + /* + * Voltage (Ch3) + */ + float ch3_voltage = 5; + + /* + * Current (Ch3) + */ + float ch3_current = 6; +} + /* * Air quality metrics */ @@ -157,6 +192,11 @@ message Telemetry { * Air quality metrics */ AirQualityMetrics air_quality_metrics = 4; + + /* + * Power Metrics + */ + PowerMetrics power_metrics = 5; } }