INode class. Publisher, Subscriber, ServiceServer, ServiceClient now accept INode in constructor instead of the bunch of independent params. Self NodeID now being configured via setNodeID() method instead of constructor param

This commit is contained in:
Pavel Kirienko
2014-03-14 19:54:27 +04:00
parent 15cbf96378
commit 613efa49b9
22 changed files with 211 additions and 181 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
namespace uavcan
{
void Timer::handleDeadline(MonotonicTime current_timestamp)
void Timer::handleDeadline(MonotonicTime current)
{
assert(!isRunning());
@@ -18,7 +18,7 @@ void Timer::handleDeadline(MonotonicTime current_timestamp)
startWithDeadline(scheduled_time + period_);
// Application can re-register the timer with different params, it's OK
handleTimerEvent(TimerEvent(scheduled_time, current_timestamp));
handleTimerEvent(TimerEvent(scheduled_time, current));
}
void Timer::startOneShotWithDeadline(MonotonicTime deadline)