This commit is contained in:
2025-11-18 18:51:01 +03:00
parent 14e583a244
commit 273f239abb
5 changed files with 93 additions and 15 deletions

View File

@@ -9,6 +9,7 @@
#include <mutex>
#include "bsplines/mcc_bsplines.h"
#include "mcc_defaults.h"
#include "mcc_generics.h"
namespace mcc
@@ -300,7 +301,19 @@ public:
requires(mcc_celestial_point_c<T> || mcc_eqt_hrz_coord_c<T>)
{
// for small corrections only!!!
auto ret = computePCM(std::move(app_pt), result, hw_pt);
if constexpr (mcc_eqt_hrz_coord_c<T>) {
if constexpr (mcc_is_equatorial_mount<MOUNT_TYPE>) {
app_pt.X = app_pt.HA;
app_pt.Y = app_pt.DEC_APP;
} else if constexpr (mcc_is_altaz_mount<MOUNT_TYPE>) {
app_pt.X = app_pt.AZ;
app_pt.Y = app_pt.ZD;
}
}
MccCelestialPoint cp;
auto ret = computePCM(app_pt, result, &cp);
// auto ret = computePCM(std::move(app_pt), result, hw_pt);
if (ret) {
return ret;
}