This commit is contained in:
Timur A. Fatkhullin 2025-07-13 00:08:13 +03:00
parent 1b1f0b29a8
commit 096040bb1b
2 changed files with 7 additions and 6 deletions

View File

@ -123,7 +123,7 @@ set(CNTR_PROTO_LIB comm_proto)
add_library(${CNTR_PROTO_LIB} STATIC ${CNTR_PROTO_LIB_SRC})
set(MCC_LIBRARY_SRC mcc_mount.h mcc_mount_coord.h mcc_mount_events_states.h mcc_finite_state_machine.h
set(MCC_LIBRARY_SRC mcc_mount_concepts.h mcc_mount.h mcc_mount_coord.h mcc_mount_events_states.h mcc_finite_state_machine.h
mcc_mount_pec.h mcc_mount_pz.h mcc_traits.h mcc_mount_telemetry.h mcc_mount_config.h mcc_mount_astro_erfa.h)
set(MCC_LIBRARY mcc)
add_library(${MCC_LIBRARY} INTERFACE ${MCC_LIBRARY_SRC})

View File

@ -184,7 +184,7 @@ concept mcc_mount_pec_c = requires(T t, const T t_const) {
typename T::coord_t;
typename T::pec_data_t;
// a class which contains at least .dx and .dy public fields
// a class that contains at least .dx and .dy public fields
requires requires(typename T::pec_result_t res) {
requires std::same_as<decltype(res.dx), typename T::coord_t>;
requires std::same_as<decltype(res.dy), typename T::coord_t>;
@ -206,7 +206,7 @@ template <typename T>
concept mcc_mount_telemetry_c = requires(T t, const T t_const) {
typename T::error_t;
// a class which contains celestial (equatorial and horizontal) coordinates
// a class that at least contains celestial (equatorial and horizontal) coordinates
requires requires(typename T::mount_telemetry_data_t telemetry) {
typename T::mount_telemetry_data_t::coord_t;
requires std::same_as<decltype(telemetry.mntRA), typename T::mount_telemetry_data_t::coord_t>; // apparent RA
@ -246,13 +246,14 @@ concept mcc_prohibited_zone_c = std::movable<T> && requires(T t, const T t_const
{ t_const.name() } -> mcc_formattable;
// check if given coordinates are in the zone
// check if given coordinates are into the zone.
// input coordinates interpretation is in according to 'zoneCoordPairKind' static constexpr member
{ t.inZone(std::declval<typename T::coord_t>(), std::declval<typename T::coord_t>()) } -> std::convertible_to<bool>;
// for given coordinates and time the method computes a time to reach the zone
// for given coordinates and time the method computes a time to reach the zone.
// implementation of the method must assume that input coordinates are apparent RA and DEC at given time point,
// while the time point is one from which computation must be performed (e.g. current time moment)
// while the time point is one from which computation should be performed (e.g. current time moment)
{
t.timeTo(std::declval<typename T::coord_t>(), std::declval<typename T::coord_t>(),
std::declval<typename T::time_point_t>())