From 51765f3d16ae5774d63aabdb74339feb54926ff9 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 1 Feb 2024 19:11:15 -0600 Subject: [PATCH] TAK Packets --- meshtastic/mesh.proto | 44 ++++++++++++++++++++++++++++++++++++++- meshtastic/portnums.proto | 6 ++++++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index 8f50b3c..118764b 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -1518,4 +1518,46 @@ message DeviceMetadata { * Has Remote Hardware enabled */ bool hasRemoteHardware = 10; -} \ No newline at end of file +} + +/* + * Packets for the official ATAK Plugin + */ +message TAK_Packet +{ + string call_sign = 1; + /* + * The payload of the packet + */ + oneof payload_variant { + /* + * TAK position report + */ + TAK_PLI tak_pli = 1; + /* + * Other binary data + */ + bytes data = 2; + } +} +/* + * Position Location Information from ATAK + */ +message TAK_PLI { + /* + * The new preferred location encoding, multiply by 1e-7 to get degrees + * in floating point + */ + sfixed32 latitude_i = 1; + + /* + * The new preferred location encoding, multiply by 1e-7 to get degrees + * in floating point + */ + sfixed32 longitude_i = 2; + + /* + * Altitude + */ + int32 altitude = 3; +} diff --git a/meshtastic/portnums.proto b/meshtastic/portnums.proto index cd6bced..f781a35 100644 --- a/meshtastic/portnums.proto +++ b/meshtastic/portnums.proto @@ -184,6 +184,12 @@ enum PortNum { * ENCODING: Protobuf */ NEIGHBORINFO_APP = 71; + + /* + * ATAK Plugin + * Portnum for payloads from the official Meshtastic ATAK plugin + */ + ATAK_PLUGIN = 72; /* * Private applications should use portnums >= 256.