This commit is contained in:
2025-12-11 17:40:23 +03:00
parent 3c0c719e37
commit 255c34dbb2
3 changed files with 169 additions and 40 deletions

View File

@@ -623,6 +623,9 @@ public:
*_stopSlewing = true;
logger.logInfo("Slewing finished");
error_t err = *_lastError;
logger.logInfo(std::format(" exit code: {} {} {}", err.value(), err.category().name(), err.message()));
// get final position
@@ -700,12 +703,12 @@ public:
return *_lastError;
}
// asynchronous slewing process
_slewFuncFuture = std::async(std::launch::async, _slewingFunc, slew_and_stop);
// // asynchronous slewing process
// _slewFuncFuture = std::async(std::launch::async, _slewingFunc, slew_and_stop);
return MccSimpleSlewingModelErrorCode::ERROR_OK;
// return MccSimpleSlewingModelErrorCode::ERROR_OK;
// return _slewingFunc(slew_and_stop);
return _slewingFunc(slew_and_stop);
}