mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 02:13:33 +08:00
Top-level typedef for distributed::Server
This commit is contained in:
@@ -7,4 +7,14 @@
|
||||
|
||||
#include <uavcan/protocol/dynamic_node_id_server/distributed/server.hpp>
|
||||
|
||||
namespace uavcan
|
||||
{
|
||||
namespace dynamic_node_id_server
|
||||
{
|
||||
|
||||
typedef distributed::Server DistributedServer;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_DISTRIBUTED_HPP_INCLUDED
|
||||
|
||||
@@ -139,7 +139,7 @@ TEST(DynamicNodeIDServer, Main)
|
||||
/*
|
||||
* Server
|
||||
*/
|
||||
distributed::Server server(nodes.a, storage, tracer);
|
||||
DistributedServer server(nodes.a, storage, tracer);
|
||||
|
||||
ASSERT_LE(0, server.init(1));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user