mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 05:13:33 +08:00
Merge branch 'master' into dynamic_node_id_raft
This commit is contained in:
@@ -84,12 +84,15 @@ static Stream& operator<<(Stream& s, const ServiceCallResult<DataType>& scr)
|
||||
*/
|
||||
class ServiceClientBase : protected DeadlineHandler
|
||||
{
|
||||
const DataTypeDescriptor* data_type_descriptor_; ///< This will be initialized at the time of first call
|
||||
|
||||
protected:
|
||||
MonotonicDuration request_timeout_;
|
||||
bool pending_;
|
||||
|
||||
explicit ServiceClientBase(INode& node)
|
||||
: DeadlineHandler(node.getScheduler())
|
||||
, data_type_descriptor_(NULL)
|
||||
, request_timeout_(getDefaultRequestTimeout())
|
||||
, pending_(false)
|
||||
{ }
|
||||
@@ -159,7 +162,7 @@ private:
|
||||
|
||||
void invokeCallback(ServiceCallResultType& result);
|
||||
|
||||
void handleReceivedDataStruct(ReceivedDataStructure<ResponseType>& response);
|
||||
virtual void handleReceivedDataStruct(ReceivedDataStructure<ResponseType>& response);
|
||||
|
||||
virtual void handleDeadline(MonotonicTime);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user