This commit is contained in:
2025-11-17 18:04:40 +03:00
parent e0c8d8f39b
commit 771619b832
8 changed files with 222 additions and 149 deletions

View File

@@ -255,6 +255,7 @@ Asibfm700Mount::error_t Asibfm700Mount::initMount()
setStateERFA(std::move(ccte_state));
setTelemetryDataUpdateInterval(_mountConfig.hardwarePollingPeriod());
setTelemetryUpdateTimeout(_mountConfig.movingModelParams().telemetryTimeout);
startInternalTelemetryDataUpdating();

View File

@@ -44,8 +44,8 @@ int main(int argc, char* argv[])
options.positional_help("[endpoint0] [enpoint1] ... [endpointN]");
options.parse_positional({"endpoints"});
// asio::io_context ctx(2);
asio::io_context ctx;
asio::io_context ctx(8);
// asio::io_context ctx;
try {
@@ -154,12 +154,12 @@ int main(int argc, char* argv[])
}
asio::thread_pool pool(5);
// asio::thread_pool pool(5);
asio::post(pool, [&ctx]() { ctx.run(); });
// asio::post(pool, [&ctx]() { ctx.run(); });
pool.join();
// ctx.run();
// pool.join();
ctx.run();
} catch (const std::system_error& ex) {
std::cerr << "An error occured: " << ex.code().message() << "\n";