This commit is contained in:
2026-05-22 12:51:57 +03:00
parent 2c6554883b
commit 8fb8851c72
2 changed files with 19 additions and 14 deletions

View File

@@ -1,9 +1,10 @@
#pragma once
#include <filesystem>
#include <mcc/mcc_keyvalue.h>
#include <mcc/mcc_pcm.h>
#include <filesystem>
#include "mcc/mcc_pzone.h"
namespace asibfm700
@@ -13,14 +14,14 @@ static constexpr double SAORAS_LATITUDE = 43.646711_degs;
static constexpr double SAORAS_LONGITUDE = 41.440732_degs;
template <mcc::impl::mcc_variant_valid_type_c T>
template <mcc::impl::mcc_record_value_c T>
struct config_record_t : mcc::impl::mcc_simple_kv_record_t<T> {
std::vector<std::string_view> head_comment;
std::string_view inline_comment;
};
template <mcc::impl::mcc_variant_valid_type_c T>
template <mcc::impl::mcc_record_value_c T>
static config_record_t<T> make_config_record(
std::string_view key,
T value,
@@ -66,22 +67,23 @@ static auto Asibfm700MountConfigurationDefaults = std::make_tuple(
// PCM B-spline knots along X-axis (HA-angle or azimuth). By default from 0 to 2*PI radians
// NOTE: The first and last values are interpretated as border knots!!!
// Thus the array length must be equal to or greater than 2!
make_config_record("pcmBsplineXknots",
mcc::impl::mccGenerateBsplineKnots(0.0, 360.0_degs, 8),
{" PCM B-spline knots along X-axis (HA-angle or azimuth). By default from 0 to 2*PI radians",
" NOTE: The first and last values are interpretated as border knots!!!",
" Thus the array length must be equal to or greater than 2!"}),
make_config_record(
"pcmBsplineXknots",
mcc::impl::mccGenerateBsplineKnots(0.0, 360.0_degs, 8),
{" PCM B-spline knots along X-axis (HA-angle or azimuth).", " By default from 0 to 2*PI radians.",
" NOTE: The first and last values are interpretated as border knots!!!",
" Thus the array length must be equal to or greater than 2!"}),
// PCM B-spline knots along Y-axis (declination or zenithal distance).
// By default from -SAORAS-latitude to PI/2 radians
// NOTE: The first and last values are interpretated as border knots!!!
// Thus the array length must be equal to or greater than 2!
make_config_record(
"pcmBsplineYknots",
mcc::impl::mccGenerateBsplineKnots(-SAORAS_LATITUDE, 90.0_degs, 8),
{" PCM B-spline knots along Y-axis (declination or zenithal distance). By default from -PI/6 to PI/2 radians",
" NOTE: The first and last values are interpretated as border knots!!!",
" Thus the array length must be equal to or greater than 2!"}),
make_config_record("pcmBsplineYknots",
mcc::impl::mccGenerateBsplineKnots(-SAORAS_LATITUDE, 90.0_degs, 8),
{" PCM B-spline knots along Y-axis (declination or zenithal distance).",
" By default from -SAORAS-latitude to PI/2 radians.",
" NOTE: The first and last values are interpretated as border knots!!!",
" Thus the array length must be equal to or greater than 2!"}),
// PCM B-spline coeffs for along X-axis (HA-angle or azimuth)
make_config_record("pcmBsplineXcoeffs",

View File

@@ -42,6 +42,9 @@ int main(int argc, char* argv[])
cfg.dumpDefaultsToFile("eecc.cfg");
cfg.load("eecc.cfg");
cfg.save("eecc.cfg1");
try {
auto opt_result = options.parse(argc, argv);