Skip to content

Commit

Permalink
added sleep again between impedance measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Dieudonné committed Jan 3, 2025
1 parent 1663374 commit 14c7db0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/board_controller/ant_neuro/ant_neuro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 (...)
{
Expand Down

0 comments on commit 14c7db0

Please sign in to comment.