diff --git a/asibfm700_config.h b/asibfm700_config.h index f9f698f..0248a23 100644 --- a/asibfm700_config.h +++ b/asibfm700_config.h @@ -1,9 +1,10 @@ #pragma once +#include + #include #include -#include #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 +template struct config_record_t : mcc::impl::mcc_simple_kv_record_t { std::vector head_comment; std::string_view inline_comment; }; -template +template static config_record_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", diff --git a/asibfm700_pcm_fit.cpp b/asibfm700_pcm_fit.cpp index 4d5f910..dc8e5e7 100644 --- a/asibfm700_pcm_fit.cpp +++ b/asibfm700_pcm_fit.cpp @@ -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);