From 380f913d7840b9bd0df34a0ac7ee89db3836438a Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 15 Jun 2023 08:07:36 -0500 Subject: [PATCH] Config --- ...escriptors.proto => cot_descriptors.proto} | 44 ++++++++++++++++++- meshtastic/module_config.proto | 18 ++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) rename meshtastic/{cot_event_descriptors.proto => cot_descriptors.proto} (79%) diff --git a/meshtastic/cot_event_descriptors.proto b/meshtastic/cot_descriptors.proto similarity index 79% rename from meshtastic/cot_event_descriptors.proto rename to meshtastic/cot_descriptors.proto index 9544abd..793a74a 100644 --- a/meshtastic/cot_event_descriptors.proto +++ b/meshtastic/cot_descriptors.proto @@ -4,7 +4,7 @@ package meshtastic; option csharp_namespace = "Meshtastic.Protobufs"; option go_package = "github.com/meshtastic/go/generated"; -option java_outer_classname = "CoTEventDescriptorProtos"; +option java_outer_classname = "CoTDescriptorProtos"; option java_package = "com.geeksville.mesh"; option swift_prefix = ""; @@ -152,4 +152,46 @@ message Tasking { * TODO */ message Capability { +} + +/* + * Role for EUD user + */ +enum Role { + /* + * Unspecifed + */ + Unspecifed = 0; + /* + * Team Member + */ + TeamMember = 1; + /* + * Team Lead + */ + TeamLead = 2; + /* + * Headquarters + */ + HQ = 3; + /* + * Airsoft enthusiast + */ + Sniper = 4; + /* + * Medic + */ + Medic = 5; + /* + * ForwardObserver + */ + ForwardObserver = 6; + /* + * Radio Telephone Operator + */ + RTO = 7; + /* + * Doggo + */ + K9 = 8; } \ No newline at end of file diff --git a/meshtastic/module_config.proto b/meshtastic/module_config.proto index 5008afb..e08fc52 100644 --- a/meshtastic/module_config.proto +++ b/meshtastic/module_config.proto @@ -2,12 +2,15 @@ syntax = "proto3"; package meshtastic; +import "meshtastic/cot_descriptors.proto"; + option csharp_namespace = "Meshtastic.Protobufs"; option go_package = "github.com/meshtastic/go/generated"; option java_outer_classname = "ModuleConfigProtos"; option java_package = "com.geeksville.mesh"; option swift_prefix = ""; + /* * Module Config */ @@ -422,6 +425,16 @@ message ModuleConfig { uint32 air_quality_interval = 7; } + /* + * Configuration for TAK team and CoT exchange + */ + message TakConfig { + /* + * Team role + */ + Role role = 1; + } + /* * TODO: REPLACE */ @@ -582,6 +595,11 @@ message ModuleConfig { * TODO: REPLACE */ NeighborInfoConfig neighbor_info = 10; + + /* + * TODO: REPLACE + */ + TakConfig tak = 11; } }