...
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user