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.