...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user