mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 03:37:35 +08:00
switch the modules implementing the block structure to px4_poll such that in posix_sitl simulation the poll works as expected, blocks the module and doesn't overload the CPU
This commit is contained in:
@@ -221,7 +221,7 @@ void BlockLocalPositionEstimator::update()
|
||||
{
|
||||
|
||||
// wait for a sensor update, check for exit condition every 100 ms
|
||||
int ret = poll(_polls, 3, 100);
|
||||
int ret = px4_poll(_polls, 3, 100);
|
||||
|
||||
if (ret < 0) {
|
||||
/* poll error, count it in perf */
|
||||
|
||||
Reference in New Issue
Block a user