satdump/plugins/meteosat_support/main.cpp

26 lines
977 B
C++
Raw Permalink Normal View History

2024-08-08 22:52:18 +02:00
#include "core/plugin.h"
#include "logger.h"
#include "msg/module_msg_instruments_decoder.h"
2024-09-25 15:08:47 -04:00
class MeteosatSupport : public satdump::Plugin
2024-08-08 22:52:18 +02:00
{
public:
std::string getID() { return "meteosat_support"; }
2024-08-08 22:52:18 +02:00
void init()
{
satdump::eventBus->register_handler<satdump::pipeline::RegisterModulesEvent>(registerPluginsHandler);
2024-08-08 22:52:18 +02:00
// satdump::eventBus->register_handler<satdump::ImageProducts::RequestCalibratorEvent>(provideImageCalibratorHandler);
}
static void registerPluginsHandler(const satdump::pipeline::RegisterModulesEvent &evt) { REGISTER_MODULE_EXTERNAL(evt.modules_registry, meteosat::MSGInstrumentsDecoderModule); }
2024-08-08 22:52:18 +02:00
// static void provideImageCalibratorHandler(const satdump::ImageProducts::RequestCalibratorEvent &evt)
// {
// // if (evt.id == "metop_mhs_nat")
// // evt.calibrators.push_back(std::make_shared<nat2pro::MHSNatCalibrator>(evt.calib, evt.products));
// }
};
2024-09-25 15:08:47 -04:00
PLUGIN_LOADER(MeteosatSupport)