...
This commit is contained in:
@@ -255,6 +255,7 @@ Asibfm700Mount::error_t Asibfm700Mount::initMount()
|
||||
|
||||
setStateERFA(std::move(ccte_state));
|
||||
|
||||
setTelemetryDataUpdateInterval(_mountConfig.hardwarePollingPeriod());
|
||||
setTelemetryUpdateTimeout(_mountConfig.movingModelParams().telemetryTimeout);
|
||||
startInternalTelemetryDataUpdating();
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user