mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 22:43:34 +08:00
Uncrustified test headers
This commit is contained in:
@@ -24,7 +24,7 @@ public:
|
||||
std::auto_ptr<ReceivedDataStructType> msg;
|
||||
|
||||
typedef uavcan::MethodBinder<SubscriptionCollector*,
|
||||
void (SubscriptionCollector::*)(const ReceivedDataStructType&)> Binder;
|
||||
void (SubscriptionCollector::*)(const ReceivedDataStructType&)> Binder;
|
||||
|
||||
Binder bind() { return Binder(this, &SubscriptionCollector::handler); }
|
||||
};
|
||||
@@ -40,7 +40,7 @@ struct SubscriberWithCollector
|
||||
Subscriber subscriber;
|
||||
|
||||
SubscriberWithCollector(uavcan::INode& node)
|
||||
: subscriber(node)
|
||||
: subscriber(node)
|
||||
{ }
|
||||
|
||||
int start() { return subscriber.start(collector.bind()); }
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
std::auto_ptr<ResultType> result;
|
||||
|
||||
typedef uavcan::MethodBinder<ServiceCallResultCollector*,
|
||||
void (ServiceCallResultCollector::*)(const ResultType&)> Binder;
|
||||
void (ServiceCallResultCollector::*)(const ResultType&)> Binder;
|
||||
|
||||
Binder bind() { return Binder(this, &ServiceCallResultCollector::handler); }
|
||||
};
|
||||
@@ -77,7 +77,7 @@ struct ServiceClientWithCollector
|
||||
ServiceClient client;
|
||||
|
||||
ServiceClientWithCollector(uavcan::INode& node)
|
||||
: client(node)
|
||||
: client(node)
|
||||
{ }
|
||||
|
||||
int call(uavcan::NodeID node_id, const typename DataType::Request& request)
|
||||
@@ -86,4 +86,3 @@ struct ServiceClientWithCollector
|
||||
return client.call(node_id, request);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user