mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 03:31:36 +08:00
TransferListenerBase holds its DataTypeDescriptor, which is needed for the upcoming dispatcher class
This commit is contained in:
@@ -241,6 +241,11 @@ TEST(TransferListener, TestingEnvironmentSFTSerialization)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This subscriber accepts any types of transfers - this makes testing easier.
|
||||
* In reality, uavcan::TransferListener should accept only specific transfer types
|
||||
* which are dispatched/filtered by uavcan::Dispatcher.
|
||||
*/
|
||||
template <unsigned int MAX_BUF_SIZE, unsigned int NUM_STATIC_BUFS, unsigned int NUM_STATIC_RECEIVERS>
|
||||
class TestSubscriber : public uavcan::TransferListener<MAX_BUF_SIZE, NUM_STATIC_BUFS, NUM_STATIC_RECEIVERS>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user