mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
18 lines
No EOL
617 B
C++
18 lines
No EOL
617 B
C++
#include "core/plugin.h"
|
|
#include "xrit/elektro/msugs_xrit_calibrator.h"
|
|
|
|
class XRITSupport : public satdump::Plugin
|
|
{
|
|
public:
|
|
std::string getID() { return "xrit_support"; }
|
|
|
|
void init() { satdump::eventBus->register_handler<satdump::products::RequestImageCalibratorEvent>(provideImageCalibratorHandler); }
|
|
|
|
static void provideImageCalibratorHandler(const satdump::products::RequestImageCalibratorEvent &evt)
|
|
{
|
|
if (evt.id == "msugs_xrit")
|
|
evt.calibrators.push_back(std::make_shared<satdump::xrit::MSUGSXritCalibrator>(evt.products, evt.calib));
|
|
}
|
|
};
|
|
|
|
PLUGIN_LOADER(XRITSupport) |