This commit is contained in:
2025-12-08 17:34:59 +03:00
parent 196ed3be1b
commit 57467ce48f
2 changed files with 6 additions and 5 deletions

View File

@@ -142,14 +142,14 @@ public:
std::vector<bool> in_zone_vec;
//t_err = controls->telemetryData(&tdata);
// t_err = controls->telemetryData(&tdata);
{
std::lock_guard lock{*_currentParamsMutex};
t_err = controls->waitForTelemetryData(&tdata);
if (t_err) {
return *_lastError =
mcc_deduce_error_code(t_err, MccSimpleSlewingModelErrorCode::ERROR_GET_TELEMETRY);
mcc_deduce_error_code(t_err, MccSimpleSlewingModelErrorCode::ERROR_GET_TELEMETRY);
}
}
@@ -621,7 +621,7 @@ public:
// check for target in p-zone
*_lastError = _checkTargetFunc();
if (_lastError->load()) { // return here immidiately
if (_lastError->load()) { // return here immediately
return *_lastError;
}