...
This commit is contained in:
@@ -144,15 +144,10 @@ public:
|
||||
std::chrono::duration<double> predictedTrackResolution{0.1}; // 0.1 seconds
|
||||
};
|
||||
|
||||
typedef MccCelestialPoint guiding_point_t;
|
||||
|
||||
// struct guiding_point_t {
|
||||
// typedef double coord_t;
|
||||
|
||||
// mcc::MccCoordPairKind coordPairKind{mcc::MccCoordPairKind::COORDS_KIND_RADEC_ICRS};
|
||||
|
||||
// coord_t x, y;
|
||||
// };
|
||||
struct guiding_point_t : MccCelestialPoint {
|
||||
coord_t corrThresh{(double)MccAngle("00:00:00.2"_dms)}; // correction threshold
|
||||
coord_t correctionRange[2]{(double)MccAngle(0.5_arcsecs), (double)MccAngle(5.0_arcsecs)};
|
||||
};
|
||||
|
||||
template <traits::mcc_mount_controls_c MOUNT_CONTROLS_T, typename... LoggerCtorArgTs>
|
||||
MccSimpleGuidingModel(MOUNT_CONTROLS_T& mount_controls, guiding_context_t context, LoggerCtorArgTs&&... ctor_args)
|
||||
@@ -359,9 +354,16 @@ protected:
|
||||
}
|
||||
}
|
||||
|
||||
guiding_point.x += pec_res.dx; // app HA
|
||||
guiding_point.y += pec_res.dy; // app DEC
|
||||
guiding_point.coordPairKind = MccCoordPairKind::COORDS_KIND_HADEC_APP;
|
||||
if constexpr (mccIsEquatorialMount(pec_t::mountType)) { // use of HA and DEC
|
||||
guiding_point.coordPairKind = MccCoordPairKind::COORDS_KIND_HADEC_APP;
|
||||
} else if constexpr (mccIsAltAzMount(pec_t::mountType)) { // use of Az and Alt
|
||||
guiding_point.coordPairKind = MccCoordPairKind::COORDS_KIND_AZALT;
|
||||
} else {
|
||||
static_assert(false, "UNKNOWN MOUNT TYPE!");
|
||||
}
|
||||
|
||||
guiding_point.x += pec_res.dx; // app HA/Az
|
||||
guiding_point.y += pec_res.dy; // app DEC/Alt
|
||||
|
||||
res_err = self(std::move(guiding_point));
|
||||
if (res_err) {
|
||||
|
||||
Reference in New Issue
Block a user