mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 10:42:08 +00:00

* WIP ATAK plugin message handling * Log * Update size and regen * Rework protos and remove compression * Track * Altitude * Protos * Protos and formatting * Add to column * Fixes / updates * Doh! * S * Refactoring and compression fixes
26 lines
747 B
C++
26 lines
747 B
C++
#pragma once
|
|
#include "ProtobufModule.h"
|
|
#include "meshtastic/atak.pb.h"
|
|
|
|
/**
|
|
* Waypoint message handling for meshtastic
|
|
*/
|
|
class AtakPluginModule : public ProtobufModule<meshtastic_TAKPacket>, private concurrency::OSThread
|
|
{
|
|
public:
|
|
/** Constructor
|
|
* name is for debugging output
|
|
*/
|
|
AtakPluginModule();
|
|
|
|
protected:
|
|
virtual bool handleReceivedProtobuf(const meshtastic_MeshPacket &mp, meshtastic_TAKPacket *t) override;
|
|
virtual void alterReceivedProtobuf(meshtastic_MeshPacket &mp, meshtastic_TAKPacket *t) override;
|
|
/* Does our periodic broadcast */
|
|
int32_t runOnce() override;
|
|
|
|
private:
|
|
meshtastic_TAKPacket cloneTAKPacketData(meshtastic_TAKPacket *t);
|
|
};
|
|
|
|
extern AtakPluginModule *atakPluginModule; |