...
This commit is contained in:
@@ -222,8 +222,8 @@ concept mcc_mount_hardware_c = !std::copyable<T> && std::movable<T> && requires(
|
||||
[]() {
|
||||
// hardware is in stop state (no any moving)
|
||||
static constexpr auto v1 = T::hw_state_t::HW_STATE_STOP;
|
||||
// hardware is in slew state (move to given celestial point)
|
||||
|
||||
// hardware is in slew state (move to given celestial point)
|
||||
static constexpr auto v2 = T::hw_state_t::HW_STATE_SLEW;
|
||||
|
||||
// hardware is in track state (track given celestial point)
|
||||
@@ -234,7 +234,7 @@ concept mcc_mount_hardware_c = !std::copyable<T> && std::movable<T> && requires(
|
||||
|
||||
// a class that contains at least time of measurement, coordinates for x,y axes and its moving rates
|
||||
requires requires(typename T::axes_pos_t pos) {
|
||||
requires std::same_as<decltype(pos.time_point), typename T::time_point_t>; // time point of measurement
|
||||
requires std::same_as<decltype(pos.time_point), typename T::time_point_t>; // time point
|
||||
|
||||
requires std::same_as<decltype(pos.x), typename T::coord_t>; // co-longitude coordinate
|
||||
requires std::same_as<decltype(pos.y), typename T::coord_t>; // co-latitude coordinate
|
||||
@@ -252,6 +252,9 @@ concept mcc_mount_hardware_c = !std::copyable<T> && std::movable<T> && requires(
|
||||
|
||||
{ t.stop() } -> std::same_as<typename T::error_t>; // stop any moving
|
||||
{ t.init() } -> std::same_as<typename T::error_t>; // initialize hardware
|
||||
|
||||
{ t.slewTo(std::declval<typename T::axes_pos_t>()) } -> std::same_as<typename T::error_t>;
|
||||
{ t.correctTo(std::declval<typename T::axes_pos_t>()) } -> std::same_as<typename T::error_t>;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user