satdump/plugins/cubesat_support/main.cpp

36 lines
934 B
C++
Raw Normal View History

2023-02-14 00:40:46 +01:00
#include "core/plugin.h"
#include "logger.h"
#include "core/module.h"
2023-02-15 02:47:32 +01:00
#include "lucky7/module_lucky7_demod.h"
2023-02-15 12:07:14 +01:00
#include "lucky7/module_lucky7_decoder.h"
2023-02-14 00:40:46 +01:00
2023-04-23 16:08:44 +02:00
#include "common/module_ax25_decoder.h"
2023-11-30 21:28:30 +01:00
#include "spino/module_spino_decoder.h"
2023-02-14 00:40:46 +01:00
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)
{
2023-02-15 02:47:32 +01:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, lucky7::Lucky7DemodModule);
2023-02-15 12:07:14 +01:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, lucky7::Lucky7DecoderModule);
2023-04-23 16:08:44 +02:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, ax25::AX25DecoderModule);
2023-11-30 21:28:30 +01:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, spino::SpinoDecoderModule);
2023-02-14 00:40:46 +01:00
}
};
PLUGIN_LOADER(CubeSatSupport)