...
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <filesystem>
|
||||||
|
|
||||||
|
|
||||||
#include <mcc/mcc_keyvalue.h>
|
#include <mcc/mcc_keyvalue.h>
|
||||||
#include <mcc/mcc_pcm.h>
|
#include <mcc/mcc_pcm.h>
|
||||||
#include <filesystem>
|
|
||||||
#include "mcc/mcc_pzone.h"
|
#include "mcc/mcc_pzone.h"
|
||||||
|
|
||||||
namespace asibfm700
|
namespace asibfm700
|
||||||
@@ -13,14 +14,14 @@ static constexpr double SAORAS_LATITUDE = 43.646711_degs;
|
|||||||
static constexpr double SAORAS_LONGITUDE = 41.440732_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> {
|
struct config_record_t : mcc::impl::mcc_simple_kv_record_t<T> {
|
||||||
std::vector<std::string_view> head_comment;
|
std::vector<std::string_view> head_comment;
|
||||||
std::string_view inline_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(
|
static config_record_t<T> make_config_record(
|
||||||
std::string_view key,
|
std::string_view key,
|
||||||
T value,
|
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
|
// 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!!!
|
// NOTE: The first and last values are interpretated as border knots!!!
|
||||||
// Thus the array length must be equal to or greater than 2!
|
// Thus the array length must be equal to or greater than 2!
|
||||||
make_config_record("pcmBsplineXknots",
|
make_config_record(
|
||||||
mcc::impl::mccGenerateBsplineKnots(0.0, 360.0_degs, 8),
|
"pcmBsplineXknots",
|
||||||
{" PCM B-spline knots along X-axis (HA-angle or azimuth). By default from 0 to 2*PI radians",
|
mcc::impl::mccGenerateBsplineKnots(0.0, 360.0_degs, 8),
|
||||||
" NOTE: The first and last values are interpretated as border knots!!!",
|
{" PCM B-spline knots along X-axis (HA-angle or azimuth).", " By default from 0 to 2*PI radians.",
|
||||||
" Thus the array length must be equal to or greater than 2!"}),
|
" 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).
|
// PCM B-spline knots along Y-axis (declination or zenithal distance).
|
||||||
// By default from -SAORAS-latitude to PI/2 radians
|
// By default from -SAORAS-latitude to PI/2 radians
|
||||||
// NOTE: The first and last values are interpretated as border knots!!!
|
// NOTE: The first and last values are interpretated as border knots!!!
|
||||||
// Thus the array length must be equal to or greater than 2!
|
// Thus the array length must be equal to or greater than 2!
|
||||||
make_config_record(
|
make_config_record("pcmBsplineYknots",
|
||||||
"pcmBsplineYknots",
|
mcc::impl::mccGenerateBsplineKnots(-SAORAS_LATITUDE, 90.0_degs, 8),
|
||||||
mcc::impl::mccGenerateBsplineKnots(-SAORAS_LATITUDE, 90.0_degs, 8),
|
{" PCM B-spline knots along Y-axis (declination or zenithal distance).",
|
||||||
{" PCM B-spline knots along Y-axis (declination or zenithal distance). By default from -PI/6 to PI/2 radians",
|
" By default from -SAORAS-latitude to PI/2 radians.",
|
||||||
" NOTE: The first and last values are interpretated as border knots!!!",
|
" NOTE: The first and last values are interpretated as border knots!!!",
|
||||||
" Thus the array length must be equal to or greater than 2!"}),
|
" Thus the array length must be equal to or greater than 2!"}),
|
||||||
|
|
||||||
// PCM B-spline coeffs for along X-axis (HA-angle or azimuth)
|
// PCM B-spline coeffs for along X-axis (HA-angle or azimuth)
|
||||||
make_config_record("pcmBsplineXcoeffs",
|
make_config_record("pcmBsplineXcoeffs",
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
cfg.dumpDefaultsToFile("eecc.cfg");
|
cfg.dumpDefaultsToFile("eecc.cfg");
|
||||||
|
|
||||||
|
cfg.load("eecc.cfg");
|
||||||
|
cfg.save("eecc.cfg1");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
auto opt_result = options.parse(argc, argv);
|
auto opt_result = options.parse(argc, argv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user