libuavcan testing: TestNetwork<> helper

This commit is contained in:
Pavel Kirienko
2015-05-20 00:12:06 +03:00
parent 1047a25872
commit 228785b8f8
4 changed files with 106 additions and 12 deletions
@@ -30,9 +30,9 @@ struct GlobalTimeSyncTestNetwork
, master_low(120)
, master_high(8)
{
slave.can.other = &master_low.can;
master_low.can.other = &slave.can;
master_high.can.other = &slave.can;
slave.can.others.insert(&master_low.can);
master_low.can.others.insert(&slave.can);
master_high.can.others.insert(&slave.can);
}
void spinAll(uavcan::MonotonicDuration duration = uavcan::MonotonicDuration::fromMSec(9))