2022-03-05 12:44:19 +01:00
|
|
|
#include "core/plugin.h"
|
2022-02-21 23:32:11 +01:00
|
|
|
#include "logger.h"
|
|
|
|
|
|
|
|
|
|
#include "fengyun3/module_fengyun_ahrpt_decoder.h"
|
|
|
|
|
#include "fengyun3/module_fengyun_mpt_decoder.h"
|
2022-04-29 12:45:09 +02:00
|
|
|
#include "fengyun3/module_fy3_instruments.h"
|
2022-02-21 23:32:11 +01:00
|
|
|
|
|
|
|
|
class FengYun3Support : public satdump::Plugin
|
|
|
|
|
{
|
|
|
|
|
public:
|
2025-05-31 20:26:47 +02:00
|
|
|
std::string getID() { return "fengyun3_support"; }
|
2022-02-21 23:32:11 +01:00
|
|
|
|
2025-05-31 20:26:47 +02:00
|
|
|
void init() { satdump::eventBus->register_handler<satdump::pipeline::RegisterModulesEvent>(registerPluginsHandler); }
|
2022-02-21 23:32:11 +01:00
|
|
|
|
2025-05-31 20:26:47 +02:00
|
|
|
static void registerPluginsHandler(const satdump::pipeline::RegisterModulesEvent &evt)
|
2022-02-21 23:32:11 +01:00
|
|
|
{
|
|
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, fengyun3::FengyunAHRPTDecoderModule);
|
|
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, fengyun3::FengyunMPTDecoderModule);
|
2022-04-29 12:45:09 +02:00
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, fengyun3::instruments::FY3InstrumentsDecoderModule);
|
2022-02-21 23:32:11 +01:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PLUGIN_LOADER(FengYun3Support)
|