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:
|
2025-05-31 20:26:47 +02:00
|
|
|
std::string getID() { return "meteosat_support"; }
|
2024-08-08 22:52:18 +02:00
|
|
|
|
|
|
|
|
void init()
|
|
|
|
|
{
|
2025-05-31 20:26:47 +02:00
|
|
|
satdump::eventBus->register_handler<satdump::pipeline::RegisterModulesEvent>(registerPluginsHandler);
|
2024-08-08 22:52:18 +02:00
|
|
|
// satdump::eventBus->register_handler<satdump::ImageProducts::RequestCalibratorEvent>(provideImageCalibratorHandler);
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-31 20:26:47 +02:00
|
|
|
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)
|