mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 01:43:35 +08:00
ServiceClient incapsulation fix
This commit is contained in:
@@ -62,7 +62,7 @@ template <typename DataType_, typename Callback = void (*)(const ServiceCallResu
|
|||||||
class ServiceClient
|
class ServiceClient
|
||||||
: public GenericSubscriber<DataType_, typename DataType_::Response,
|
: public GenericSubscriber<DataType_, typename DataType_::Response,
|
||||||
typename ServiceResponseTransferListenerInstantiationHelper<DataType_>::Type >
|
typename ServiceResponseTransferListenerInstantiationHelper<DataType_>::Type >
|
||||||
, public DeadlineHandler
|
, protected DeadlineHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef DataType_ DataType;
|
typedef DataType_ DataType;
|
||||||
@@ -275,6 +275,8 @@ public:
|
|||||||
publisher_.setTxTimeout(timeout);
|
publisher_.setTxTimeout(timeout);
|
||||||
request_timeout_ = std::max(timeout, publisher_.getTxTimeout()); // No less than TX timeout
|
request_timeout_ = std::max(timeout, publisher_.getTxTimeout()); // No less than TX timeout
|
||||||
}
|
}
|
||||||
|
|
||||||
|
using DeadlineHandler::getDeadline;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user