mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 06:23:34 +08:00
CAN TX queue quota - limiting max number of memory blocks per TX queue to avoid memory congestion if one iface is down
This commit is contained in:
@@ -130,7 +130,7 @@ TEST(CanIOManager, Transmission)
|
||||
CanDriverMock driver(2, clockmock);
|
||||
|
||||
// IO Manager
|
||||
CanIOManager iomgr(driver, poolmgr, clockmock);
|
||||
CanIOManager iomgr(driver, poolmgr, clockmock, 9999);
|
||||
ASSERT_EQ(2, iomgr.getNumIfaces());
|
||||
|
||||
const int ALL_IFACES_MASK = 3;
|
||||
|
||||
@@ -73,7 +73,7 @@ TEST(CanTxQueue, TxQueue)
|
||||
|
||||
SystemClockMock clockmock;
|
||||
|
||||
CanTxQueue queue(&poolmgr, &clockmock);
|
||||
CanTxQueue queue(poolmgr, clockmock, 99999);
|
||||
EXPECT_TRUE(queue.isEmpty());
|
||||
|
||||
const uavcan::CanIOFlags flags = 0;
|
||||
|
||||
Reference in New Issue
Block a user