satdump/plugins/others_support/main.cpp

55 lines
1.7 KiB
C++
Raw Permalink Normal View History

#include "core/plugin.h"
2022-02-23 10:49:30 +01:00
#include "logger.h"
#include "core/module.h"
2022-02-23 10:49:30 +01:00
#include "saral/argos/module_saral_argos.h"
#include "angels/argos/module_angels_argos.h"
#include "cryosat/instruments/siral/module_cryosat_siral.h"
#include "coriolis/instruments/windsat/module_coriolis_windsat.h"
#include "cloudsat/instruments/cpr/module_cloudsat_cpr.h"
2022-11-07 01:26:44 +01:00
#include "scisat1/module_scisat1_instruments.h"
2023-08-21 21:54:22 +02:00
#include "orb/module_orb_decoder.h"
2022-02-23 10:49:30 +01:00
class OthersSupport : public satdump::Plugin
{
public:
std::string getID()
{
return "others_support";
}
void init()
{
satdump::eventBus->register_handler<RegisterModulesEvent>(registerPluginsHandler);
2024-09-28 12:53:03 +02:00
// satdump::eventBus->register_handler<satdump::ImageProducts::RequestCalibratorEvent>(provideImageCalibratorHandler);
2022-02-23 10:49:30 +01:00
}
static void registerPluginsHandler(const RegisterModulesEvent &evt)
{
REGISTER_MODULE_EXTERNAL(evt.modules_registry, saral::argos::SaralArgosDecoderModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, angels::argos::AngelsArgosDecoderModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, cryosat::siral::CryoSatSIRALDecoderModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, coriolis::windsat::CoriolisWindSatDecoderModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, cloudsat::cpr::CloudSatCPRDecoderModule);
2022-11-07 01:26:44 +01:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, scisat1::instruments::SciSat1InstrumentsDecoderModule);
2024-02-11 22:48:40 +01:00
2023-08-21 21:54:22 +02:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, orb::ORBDecoderModule);
2022-02-23 10:49:30 +01:00
}
2024-02-19 00:50:34 +01:00
2024-09-28 12:53:03 +02:00
// static void provideImageCalibratorHandler(const satdump::ImageProducts::RequestCalibratorEvent &evt)
// {
// }
2022-02-23 10:49:30 +01:00
};
PLUGIN_LOADER(OthersSupport)