...
This commit is contained in:
@@ -47,6 +47,8 @@ concept mcc_mount_telemetry_enh_data_c = mcc_mount_telemetry_data_c<T> && requir
|
||||
// X - HA, Y - DEC for equatorial-type mount; X - AZ, Y - ALT for horizontal-type one
|
||||
requires std::same_as<decltype(t.mntPosX), typename T::coord_t>;
|
||||
requires std::same_as<decltype(t.mntPosY), typename T::coord_t>;
|
||||
requires std::same_as<decltype(t.mntRateX), typename T::coord_t>;
|
||||
requires std::same_as<decltype(t.mntRateY), typename T::coord_t>;
|
||||
|
||||
// current refraction coefficients
|
||||
requires std::same_as<decltype(t.currRefrCoeffs), typename PEC_T::pec_result_t>;
|
||||
@@ -72,7 +74,7 @@ struct MccMountTelemetryData {
|
||||
typedef typename ASTROM_ENGINE_T::pa_t pa_t;
|
||||
|
||||
// time-related
|
||||
time_point_t utc; // time point of measurements, UTC
|
||||
time_point_t time_point; // time point of measurements, UTC
|
||||
juldate_t jd; // Julian date
|
||||
sideral_time_t siderTime; // local apperant sideral time
|
||||
|
||||
@@ -82,9 +84,10 @@ struct MccMountTelemetryData {
|
||||
coord_t mntAZ, mntALT;
|
||||
pa_t mntPA;
|
||||
|
||||
// encoder-measured (non-corrected for PCS) current mount position
|
||||
// encoder-measured (non-corrected for PCS) current mount position and axes rates
|
||||
// X - HA, Y - DEC for equatorial-type mount; X - AZ, Y - ALT for horizontal-type one
|
||||
coord_t mntPosX, mntPosY;
|
||||
coord_t mntRateX, mntRateY;
|
||||
|
||||
// current refraction coefficients
|
||||
typename PEC_T::pec_result_t currRefrCoeffs;
|
||||
@@ -163,9 +166,11 @@ public:
|
||||
_data.utc = ax_pos.time_point;
|
||||
_data.mntPosX = static_cast<typename astrom_engine_t::coord_t>(ax_pos.x);
|
||||
_data.mntPosY = static_cast<typename astrom_engine_t::coord_t>(ax_pos.y);
|
||||
_data.mntRateX = static_cast<typename astrom_engine_t::coord_t>(ax_pos.xrate);
|
||||
_data.mntRateY = static_cast<typename astrom_engine_t::coord_t>(ax_pos.yrate);
|
||||
|
||||
// compute Julian date
|
||||
auto ast_err = _astromEngine.greg2jul(_data.utc, _data.jd);
|
||||
auto ast_err = _astromEngine.greg2jul(_data.time_point, _data.jd);
|
||||
if (ast_err) {
|
||||
return TEL_ERROR_ASTROMETRY_COMP;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user