satdump/plugins/cubesat_support/main.cpp
2023-04-23 16:08:44 +02:00

32 lines
No EOL
809 B
C++

#include "core/plugin.h"
#include "logger.h"
#include "core/module.h"
#include "lucky7/module_lucky7_demod.h"
#include "lucky7/module_lucky7_decoder.h"
#include "common/module_ax25_decoder.h"
class CubeSatSupport : public satdump::Plugin
{
public:
std::string getID()
{
return "cubesat_support";
}
void init()
{
satdump::eventBus->register_handler<RegisterModulesEvent>(registerPluginsHandler);
}
static void registerPluginsHandler(const RegisterModulesEvent &evt)
{
REGISTER_MODULE_EXTERNAL(evt.modules_registry, lucky7::Lucky7DemodModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, lucky7::Lucky7DecoderModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, ax25::AX25DecoderModule);
}
};
PLUGIN_LOADER(CubeSatSupport)