2022-12-01 15:38:28 +01:00
|
|
|
#include "core/plugin.h"
|
|
|
|
|
#include "logger.h"
|
|
|
|
|
|
|
|
|
|
#include "noaa_apt/module_noaa_apt_decoder.h"
|
2025-04-26 21:56:53 +02:00
|
|
|
#include "noaa_apt/module_noaa_apt_demod.h"
|
2023-11-07 22:04:52 +01:00
|
|
|
#include "noaa_apt/noaa_apt_proj.h"
|
2022-12-01 15:38:28 +01:00
|
|
|
|
2024-02-12 22:44:09 +01:00
|
|
|
#include "generic/module_generic_analog_demod.h"
|
|
|
|
|
|
2025-04-26 21:56:53 +02:00
|
|
|
#include "sstv/module_sstv_decoder.h"
|
|
|
|
|
|
2022-12-01 15:38:28 +01:00
|
|
|
class AnalogSupport : public satdump::Plugin
|
|
|
|
|
{
|
|
|
|
|
public:
|
2025-04-26 21:56:53 +02:00
|
|
|
std::string getID() { return "analog_support"; }
|
2022-12-01 15:38:28 +01:00
|
|
|
|
|
|
|
|
void init()
|
|
|
|
|
{
|
2025-05-31 20:26:47 +02:00
|
|
|
satdump::eventBus->register_handler<satdump::pipeline::RegisterModulesEvent>(registerPluginsHandler);
|
2025-05-27 18:42:18 +01:00
|
|
|
satdump::eventBus->register_handler<satdump::projection::RequestSatelliteRaytracerEvent>(provideSatProjHandler);
|
2022-12-01 15:38:28 +01:00
|
|
|
}
|
|
|
|
|
|
2025-05-31 20:26:47 +02:00
|
|
|
static void registerPluginsHandler(const satdump::pipeline::RegisterModulesEvent &evt)
|
2022-12-01 15:38:28 +01:00
|
|
|
{
|
|
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, noaa_apt::NOAAAPTDemodModule);
|
|
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, noaa_apt::NOAAAPTDecoderModule);
|
2024-02-12 22:44:09 +01:00
|
|
|
|
|
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, generic_analog::GenericAnalogDemodModule);
|
2025-04-26 21:56:53 +02:00
|
|
|
|
|
|
|
|
REGISTER_MODULE_EXTERNAL(evt.modules_registry, sstv::SSTVDecoderModule);
|
2022-12-01 15:38:28 +01:00
|
|
|
}
|
2023-11-07 22:04:52 +01:00
|
|
|
|
2025-05-27 18:42:18 +01:00
|
|
|
static void provideSatProjHandler(const satdump::projection::RequestSatelliteRaytracerEvent &evt)
|
2023-11-07 22:04:52 +01:00
|
|
|
{
|
|
|
|
|
if (evt.id == "noaa_apt_single_line")
|
2025-01-14 19:05:15 +01:00
|
|
|
evt.r.push_back(std::make_shared<noaa_apt::NOAA_APT_SatProj>(evt.cfg));
|
2023-11-07 22:04:52 +01:00
|
|
|
}
|
2022-12-01 15:38:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
PLUGIN_LOADER(AnalogSupport)
|