...
This commit is contained in:
@@ -109,6 +109,41 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
MccMountTelemetryAstromTransform(MccMountTelemetryAstromTransform&& other)
|
||||
: _pec(other._pec), _astromEngine(other._astromEngine)
|
||||
{
|
||||
}
|
||||
|
||||
MccMountTelemetryAstromTransform& operator=(MccMountTelemetryAstromTransform&& other)
|
||||
{
|
||||
if (this == &other) {
|
||||
return;
|
||||
}
|
||||
|
||||
_pec = other._pec;
|
||||
_astromEngine = other._astromEngine;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
MccMountTelemetryAstromTransform(const MccMountTelemetryAstromTransform& other)
|
||||
: _pec(other._pec), _astromEngine(other._astromEngine)
|
||||
{
|
||||
}
|
||||
|
||||
MccMountTelemetryAstromTransform& operator=(const MccMountTelemetryAstromTransform& other)
|
||||
{
|
||||
if (this == &other) {
|
||||
return;
|
||||
}
|
||||
|
||||
_pec = other._pec;
|
||||
_astromEngine = other._astromEngine;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
virtual ~MccMountTelemetryAstromTransform() = default;
|
||||
|
||||
template <traits::mcc_celestial_point_c CT>
|
||||
@@ -189,9 +224,12 @@ public:
|
||||
}
|
||||
} else if (coord.coordPairKind == MccCoordPairKind::COORDS_KIND_AZALT) { // from app AZ-ALT
|
||||
if constexpr (equatorialMount) {
|
||||
ast_err = azalt2hadec(coord.x, coord.y, X_app, Y_app); // compute HA-DEC
|
||||
if (!ast_err) { // compute CIO RA (as XX_app)
|
||||
ast_err = toApparent(X_app, Y_app, X_app, Y_app, XX_app);
|
||||
ast_err = _astromEngine.azalt2hadec(coord.x, coord.y, X_app, Y_app); // compute HA-DEC
|
||||
if (!ast_err) { // compute CIO RA (as XX_app)
|
||||
coord.coordPairKind == MccCoordPairKind::COORDS_KIND_HADEC_APP;
|
||||
coord.x = X_app;
|
||||
coord.y = Y_app;
|
||||
ast_err = toApparent(std::move(coord), std::move(time_point), X_app, Y_app, XX_app);
|
||||
}
|
||||
} else if (altAzMount) {
|
||||
X_app = coord.x;
|
||||
@@ -465,4 +503,5 @@ protected:
|
||||
pec_t& _pec;
|
||||
};
|
||||
|
||||
|
||||
} // namespace mcc
|
||||
|
||||
Reference in New Issue
Block a user