1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#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"
#include "geoscan/module_geoscan_decoder.h"
#include "geoscan/module_geoscan_data_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);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, geoscan::GEOSCANDecoderModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, geoscan::GEOSCANDataDecoderModule);
}
};
PLUGIN_LOADER(CubeSatSupport)
|