This commit is contained in:
2025-07-25 09:03:29 +03:00
parent 1d49077d7b
commit c71cf98dd9
2 changed files with 11 additions and 7 deletions

View File

@@ -96,9 +96,10 @@ inline std::error_code make_error_code(MccSimpleSlewModelErrorCode ec)
/*
* WARNING: it is assumed that coordinates are in radians!
* but this fact is only used if slew coordinate pair are given as
* [azimuth, zenithal distance] (see sources code below)
* It is very simple slew model!
* There are no any complex routes (bypass of prohibited),
* just a strait path from current point to target
*
*/
template <traits::mcc_logger_c LoggerT = MccNullLogger>
@@ -123,7 +124,7 @@ public:
// coordinates polling interval in seconds
std::chrono::duration<double> coordPollingInterval{0.1};
bool stopAfterSlew{false};
std::chrono::seconds timeout{3600};
std::chrono::seconds slewTimeout{3600};
};
@@ -367,7 +368,7 @@ protected:
prev_time_point = t_data.time_point;
if ((std::chrono::steady_clock::now() - start_poll_tm) > slew_point.timeout) {
if ((std::chrono::steady_clock::now() - start_poll_tm) > slew_point.slewTimeout) {
logError("Waiting time for completion of slewing expired!");
return MccSimpleSlewModelErrorCode::ERROR_SLEW_TIMEOUT;
}