satdump/plugins/cubesat_support/main.cpp

35 lines
1.2 KiB
C++
Raw Permalink Normal View History

2023-02-14 00:40:46 +01:00
#include "core/plugin.h"
#include "logger.h"
2023-02-15 12:07:14 +01:00
#include "lucky7/module_lucky7_decoder.h"
#include "lucky7/module_lucky7_demod.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-12-31 22:51:40 +01:00
#include "geoscan/module_geoscan_data_decoder.h"
#include "geoscan/module_geoscan_decoder.h"
2023-12-31 22:51:40 +01:00
2023-02-14 00:40:46 +01:00
class CubeSatSupport : public satdump::Plugin
{
public:
std::string getID() { return "cubesat_support"; }
2023-02-14 00:40:46 +01:00
void init() { satdump::eventBus->register_handler<satdump::pipeline::RegisterModulesEvent>(registerPluginsHandler); }
2023-02-14 00:40:46 +01:00
static void registerPluginsHandler(const satdump::pipeline::RegisterModulesEvent &evt)
2023-02-14 00:40:46 +01:00
{
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-12-31 22:51:40 +01:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, geoscan::GEOSCANDecoderModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, geoscan::GEOSCANDataDecoderModule);
2023-02-14 00:40:46 +01:00
}
};
PLUGIN_LOADER(CubeSatSupport)