From 14c7db0a476a35d0fbd7c0f4204a3a5fbd501d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Dieudonn=C3=A9?= Date: Fri, 3 Jan 2025 16:16:34 +0100 Subject: [PATCH] added sleep again between impedance measurements --- src/board_controller/ant_neuro/ant_neuro.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/board_controller/ant_neuro/ant_neuro.cpp b/src/board_controller/ant_neuro/ant_neuro.cpp index 36911bbb8..2e2f60cff 100644 --- a/src/board_controller/ant_neuro/ant_neuro.cpp +++ b/src/board_controller/ant_neuro/ant_neuro.cpp @@ -299,6 +299,12 @@ void AntNeuroBoard::read_thread () push_package (package); } std::this_thread::sleep_for (std::chrono::milliseconds (1)); + if (impedance_mode) + { + // some more sleep; twice every second should be more than enough + // if left out, it yields impedances at around 64 Hz + std::this_thread::sleep_for (std::chrono::milliseconds (500)); + } } catch (...) {