mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 01:13:35 +08:00
POSIX: workaround for poll notification
Sensor combined topic notification wasnot working because the calls to hrt_called() and hrt_call_after() in ORBDevNode::appears_updated() are not working correctly. This commit ifdefs out those calls, and the poling seems to work correctly. This is a workaround until the issue is resolved. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -514,6 +514,9 @@ ORBDevNode::appears_updated(SubscriberData *sd)
|
||||
break;
|
||||
}
|
||||
|
||||
// FIXME - the calls to hrt_called and hrt_call_after seem not to work in the
|
||||
// POSIX build
|
||||
#ifndef __PX4_POSIX
|
||||
/*
|
||||
* If the interval timer is still running, the topic should not
|
||||
* appear updated, even though at this point we know that it has.
|
||||
@@ -533,6 +536,7 @@ ORBDevNode::appears_updated(SubscriberData *sd)
|
||||
sd->update_interval,
|
||||
&ORBDevNode::update_deferred_trampoline,
|
||||
(void *)this);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Remember that we have told the subscriber that there is data.
|
||||
|
||||
Reference in New Issue
Block a user