satdump/plugins/cubesat_support/main.cpp
2023-11-30 21:28:30 +01:00

36 lines
No EOL
934 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"
#include "spino/module_spino_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);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, spino::SpinoDecoderModule);
}
};
PLUGIN_LOADER(CubeSatSupport)