diff --git a/proto b/proto index 4b3ff32ee..01a546d4f 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 4b3ff32ee9e07782772504b3ab319234be7dd3b5 +Subproject commit 01a546d4f83e06ecde6a005bfbbbd067aaa49ac5 diff --git a/src/mavsdk/plugins/action/action.cpp b/src/mavsdk/plugins/action/action.cpp index 97bb99e9c..865ae7d28 100644 --- a/src/mavsdk/plugins/action/action.cpp +++ b/src/mavsdk/plugins/action/action.cpp @@ -225,26 +225,6 @@ Action::Result Action::set_takeoff_altitude(float altitude) const return _impl->set_takeoff_altitude(altitude); } -void Action::get_maximum_speed_async(const GetMaximumSpeedCallback callback) -{ - _impl->get_maximum_speed_async(callback); -} - -std::pair Action::get_maximum_speed() const -{ - return _impl->get_maximum_speed(); -} - -void Action::set_maximum_speed_async(float speed, const ResultCallback callback) -{ - _impl->set_maximum_speed_async(speed, callback); -} - -Action::Result Action::set_maximum_speed(float speed) const -{ - return _impl->set_maximum_speed(speed); -} - void Action::get_return_to_launch_altitude_async(const GetReturnToLaunchAltitudeCallback callback) { _impl->get_return_to_launch_altitude_async(callback); diff --git a/src/mavsdk/plugins/action/action_impl.cpp b/src/mavsdk/plugins/action/action_impl.cpp index 2bfedbe1a..4ec7d3174 100644 --- a/src/mavsdk/plugins/action/action_impl.cpp +++ b/src/mavsdk/plugins/action/action_impl.cpp @@ -716,35 +716,6 @@ std::pair ActionImpl::get_takeoff_altitude() const } } -void ActionImpl::set_maximum_speed_async( - const float speed_m_s, const Action::ResultCallback& callback) const -{ - callback(set_maximum_speed(speed_m_s)); -} - -Action::Result ActionImpl::set_maximum_speed(float speed_m_s) const -{ - const MavlinkParameterClient::Result result = - _system_impl->set_param_float(MAX_SPEED_PARAM, speed_m_s); - return (result == MavlinkParameterClient::Result::Success) ? Action::Result::Success : - Action::Result::ParameterError; -} - -void ActionImpl::get_maximum_speed_async(const Action::GetMaximumSpeedCallback& callback) const -{ - auto speed_result = get_maximum_speed(); - callback(speed_result.first, speed_result.second); -} - -std::pair ActionImpl::get_maximum_speed() const -{ - auto result = _system_impl->get_param_float(MAX_SPEED_PARAM); - return std::make_pair<>( - (result.first == MavlinkParameterClient::Result::Success) ? Action::Result::Success : - Action::Result::ParameterError, - result.second); -} - void ActionImpl::set_return_to_launch_altitude_async( const float relative_altitude_m, const Action::ResultCallback& callback) const { diff --git a/src/mavsdk/plugins/action/action_impl.h b/src/mavsdk/plugins/action/action_impl.h index 555b58b6e..e5beafcc9 100644 --- a/src/mavsdk/plugins/action/action_impl.h +++ b/src/mavsdk/plugins/action/action_impl.h @@ -84,13 +84,6 @@ class ActionImpl : public PluginImplBase { Action::Result set_takeoff_altitude(float relative_altitude_m); std::pair get_takeoff_altitude() const; - void - set_maximum_speed_async(const float speed_m_s, const Action::ResultCallback& callback) const; - void get_maximum_speed_async(const Action::GetMaximumSpeedCallback& callback) const; - - Action::Result set_maximum_speed(float speed_m_s) const; - std::pair get_maximum_speed() const; - void set_return_to_launch_altitude_async( const float relative_altitude_m, const Action::ResultCallback& callback) const; void get_return_to_launch_altitude_async( diff --git a/src/mavsdk/plugins/action/include/plugins/action/action.h b/src/mavsdk/plugins/action/include/plugins/action/action.h index d15e5d6d4..16bcb20ee 100644 --- a/src/mavsdk/plugins/action/include/plugins/action/action.h +++ b/src/mavsdk/plugins/action/include/plugins/action/action.h @@ -542,43 +542,6 @@ class Action : public PluginBase { */ Result set_takeoff_altitude(float altitude) const; - /** - * @brief Callback type for get_maximum_speed_async. - */ - using GetMaximumSpeedCallback = std::function; - - /** - * @brief Get the vehicle maximum speed (in metres/second). - * - * This function is non-blocking. See 'get_maximum_speed' for the blocking counterpart. - */ - void get_maximum_speed_async(const GetMaximumSpeedCallback callback); - - /** - * @brief Get the vehicle maximum speed (in metres/second). - * - * This function is blocking. See 'get_maximum_speed_async' for the non-blocking counterpart. - * - * @return Result of request. - */ - std::pair get_maximum_speed() const; - - /** - * @brief Set vehicle maximum speed (in metres/second). - * - * This function is non-blocking. See 'set_maximum_speed' for the blocking counterpart. - */ - void set_maximum_speed_async(float speed, const ResultCallback callback); - - /** - * @brief Set vehicle maximum speed (in metres/second). - * - * This function is blocking. See 'set_maximum_speed_async' for the non-blocking counterpart. - * - * @return Result of request. - */ - Result set_maximum_speed(float speed) const; - /** * @brief Callback type for get_return_to_launch_altitude_async. */ diff --git a/src/mavsdk/plugins/action/mocks/action_mock.h b/src/mavsdk/plugins/action/mocks/action_mock.h index 6d43171be..34ea589a8 100644 --- a/src/mavsdk/plugins/action/mocks/action_mock.h +++ b/src/mavsdk/plugins/action/mocks/action_mock.h @@ -29,8 +29,6 @@ class MockAction { MOCK_CONST_METHOD0(transition_to_multicopter, Action::Result()){}; MOCK_CONST_METHOD0(get_takeoff_altitude, std::pair()){}; MOCK_CONST_METHOD1(set_takeoff_altitude, Action::Result(float)){}; - MOCK_CONST_METHOD0(get_maximum_speed, std::pair()){}; - MOCK_CONST_METHOD1(set_maximum_speed, Action::Result(float)){}; MOCK_CONST_METHOD0(get_return_to_launch_altitude, std::pair()){}; MOCK_CONST_METHOD1(set_return_to_launch_altitude, Action::Result(float)){}; MOCK_CONST_METHOD1(set_current_speed, Action::Result(float)){}; diff --git a/src/mavsdk_server/src/generated/action/action.grpc.pb.cc b/src/mavsdk_server/src/generated/action/action.grpc.pb.cc index f9d3a2b26..1e5440a7a 100644 --- a/src/mavsdk_server/src/generated/action/action.grpc.pb.cc +++ b/src/mavsdk_server/src/generated/action/action.grpc.pb.cc @@ -42,8 +42,6 @@ static const char* ActionService_method_names[] = { "/mavsdk.rpc.action.ActionService/TransitionToMulticopter", "/mavsdk.rpc.action.ActionService/GetTakeoffAltitude", "/mavsdk.rpc.action.ActionService/SetTakeoffAltitude", - "/mavsdk.rpc.action.ActionService/GetMaximumSpeed", - "/mavsdk.rpc.action.ActionService/SetMaximumSpeed", "/mavsdk.rpc.action.ActionService/GetReturnToLaunchAltitude", "/mavsdk.rpc.action.ActionService/SetReturnToLaunchAltitude", "/mavsdk.rpc.action.ActionService/SetCurrentSpeed", @@ -74,11 +72,9 @@ ActionService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chan , rpcmethod_TransitionToMulticopter_(ActionService_method_names[15], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetTakeoffAltitude_(ActionService_method_names[16], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_SetTakeoffAltitude_(ActionService_method_names[17], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetMaximumSpeed_(ActionService_method_names[18], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetMaximumSpeed_(ActionService_method_names[19], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetReturnToLaunchAltitude_(ActionService_method_names[20], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetReturnToLaunchAltitude_(ActionService_method_names[21], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetCurrentSpeed_(ActionService_method_names[22], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetReturnToLaunchAltitude_(ActionService_method_names[18], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetReturnToLaunchAltitude_(ActionService_method_names[19], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SetCurrentSpeed_(ActionService_method_names[20], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status ActionService::Stub::Arm(::grpc::ClientContext* context, const ::mavsdk::rpc::action::ArmRequest& request, ::mavsdk::rpc::action::ArmResponse* response) { @@ -495,52 +491,6 @@ ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetTakeoffAltitudeResp return result; } -::grpc::Status ActionService::Stub::GetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::action::GetMaximumSpeedRequest, ::mavsdk::rpc::action::GetMaximumSpeedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetMaximumSpeed_, context, request, response); -} - -void ActionService::Stub::async::GetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::mavsdk::rpc::action::GetMaximumSpeedRequest, ::mavsdk::rpc::action::GetMaximumSpeedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMaximumSpeed_, context, request, response, std::move(f)); -} - -void ActionService::Stub::async::GetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_GetMaximumSpeed_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetMaximumSpeedResponse>* ActionService::Stub::PrepareAsyncGetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::mavsdk::rpc::action::GetMaximumSpeedResponse, ::mavsdk::rpc::action::GetMaximumSpeedRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_GetMaximumSpeed_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetMaximumSpeedResponse>* ActionService::Stub::AsyncGetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncGetMaximumSpeedRaw(context, request, cq); - result->StartCall(); - return result; -} - -::grpc::Status ActionService::Stub::SetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response) { - return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::action::SetMaximumSpeedRequest, ::mavsdk::rpc::action::SetMaximumSpeedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetMaximumSpeed_, context, request, response); -} - -void ActionService::Stub::async::SetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall< ::mavsdk::rpc::action::SetMaximumSpeedRequest, ::mavsdk::rpc::action::SetMaximumSpeedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetMaximumSpeed_, context, request, response, std::move(f)); -} - -void ActionService::Stub::async::SetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response, ::grpc::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetMaximumSpeed_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetMaximumSpeedResponse>* ActionService::Stub::PrepareAsyncSetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::mavsdk::rpc::action::SetMaximumSpeedResponse, ::mavsdk::rpc::action::SetMaximumSpeedRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetMaximumSpeed_, context, request); -} - -::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetMaximumSpeedResponse>* ActionService::Stub::AsyncSetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - auto* result = - this->PrepareAsyncSetMaximumSpeedRaw(context, request, cq); - result->StartCall(); - return result; -} - ::grpc::Status ActionService::Stub::GetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest& request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response) { return ::grpc::internal::BlockingUnaryCall< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_GetReturnToLaunchAltitude_, context, request, response); } @@ -794,26 +744,6 @@ ActionService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( ActionService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ActionService::Service, ::mavsdk::rpc::action::GetMaximumSpeedRequest, ::mavsdk::rpc::action::GetMaximumSpeedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](ActionService::Service* service, - ::grpc::ServerContext* ctx, - const ::mavsdk::rpc::action::GetMaximumSpeedRequest* req, - ::mavsdk::rpc::action::GetMaximumSpeedResponse* resp) { - return service->GetMaximumSpeed(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ActionService_method_names[19], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ActionService::Service, ::mavsdk::rpc::action::SetMaximumSpeedRequest, ::mavsdk::rpc::action::SetMaximumSpeedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( - [](ActionService::Service* service, - ::grpc::ServerContext* ctx, - const ::mavsdk::rpc::action::SetMaximumSpeedRequest* req, - ::mavsdk::rpc::action::SetMaximumSpeedResponse* resp) { - return service->SetMaximumSpeed(ctx, req, resp); - }, this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ActionService_method_names[20], - ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ActionService::Service, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ActionService::Service* service, ::grpc::ServerContext* ctx, @@ -822,7 +752,7 @@ ActionService::Service::Service() { return service->GetReturnToLaunchAltitude(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ActionService_method_names[21], + ActionService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ActionService::Service, ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ActionService::Service* service, @@ -832,7 +762,7 @@ ActionService::Service::Service() { return service->SetReturnToLaunchAltitude(ctx, req, resp); }, this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - ActionService_method_names[22], + ActionService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< ActionService::Service, ::mavsdk::rpc::action::SetCurrentSpeedRequest, ::mavsdk::rpc::action::SetCurrentSpeedResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( [](ActionService::Service* service, @@ -972,20 +902,6 @@ ::grpc::Status ActionService::Service::SetTakeoffAltitude(::grpc::ServerContext* return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status ActionService::Service::GetMaximumSpeed(::grpc::ServerContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ActionService::Service::SetMaximumSpeed(::grpc::ServerContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - ::grpc::Status ActionService::Service::GetReturnToLaunchAltitude(::grpc::ServerContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response) { (void) context; (void) request; diff --git a/src/mavsdk_server/src/generated/action/action.grpc.pb.h b/src/mavsdk_server/src/generated/action/action.grpc.pb.h index 56cad504a..cf4f0d6ba 100644 --- a/src/mavsdk_server/src/generated/action/action.grpc.pb.h +++ b/src/mavsdk_server/src/generated/action/action.grpc.pb.h @@ -257,24 +257,6 @@ class ActionService final { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetTakeoffAltitudeResponse>>(PrepareAsyncSetTakeoffAltitudeRaw(context, request, cq)); } // - // Get the vehicle maximum speed (in metres/second). - virtual ::grpc::Status GetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetMaximumSpeedResponse>> AsyncGetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetMaximumSpeedResponse>>(AsyncGetMaximumSpeedRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetMaximumSpeedResponse>> PrepareAsyncGetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetMaximumSpeedResponse>>(PrepareAsyncGetMaximumSpeedRaw(context, request, cq)); - } - // - // Set vehicle maximum speed (in metres/second). - virtual ::grpc::Status SetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetMaximumSpeedResponse>> AsyncSetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetMaximumSpeedResponse>>(AsyncSetMaximumSpeedRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetMaximumSpeedResponse>> PrepareAsyncSetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetMaximumSpeedResponse>>(PrepareAsyncSetMaximumSpeedRaw(context, request, cq)); - } - // // Get the return to launch minimum return altitude (in meters). virtual ::grpc::Status GetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest& request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>> AsyncGetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest& request, ::grpc::CompletionQueue* cq) { @@ -436,14 +418,6 @@ class ActionService final { virtual void SetTakeoffAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest* request, ::mavsdk::rpc::action::SetTakeoffAltitudeResponse* response, std::function) = 0; virtual void SetTakeoffAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest* request, ::mavsdk::rpc::action::SetTakeoffAltitudeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; // - // Get the vehicle maximum speed (in metres/second). - virtual void GetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response, std::function) = 0; - virtual void GetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // - // Set vehicle maximum speed (in metres/second). - virtual void SetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response, std::function) = 0; - virtual void SetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; - // // Get the return to launch minimum return altitude (in meters). virtual void GetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response, std::function) = 0; virtual void GetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0; @@ -499,10 +473,6 @@ class ActionService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetTakeoffAltitudeResponse>* PrepareAsyncGetTakeoffAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetTakeoffAltitudeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetTakeoffAltitudeResponse>* AsyncSetTakeoffAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetTakeoffAltitudeResponse>* PrepareAsyncSetTakeoffAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetMaximumSpeedResponse>* AsyncGetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetMaximumSpeedResponse>* PrepareAsyncGetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetMaximumSpeedResponse>* AsyncSetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetMaximumSpeedResponse>* PrepareAsyncSetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>* AsyncGetReturnToLaunchAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>* PrepareAsyncGetReturnToLaunchAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>* AsyncSetReturnToLaunchAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest& request, ::grpc::CompletionQueue* cq) = 0; @@ -639,20 +609,6 @@ class ActionService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetTakeoffAltitudeResponse>> PrepareAsyncSetTakeoffAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetTakeoffAltitudeResponse>>(PrepareAsyncSetTakeoffAltitudeRaw(context, request, cq)); } - ::grpc::Status GetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetMaximumSpeedResponse>> AsyncGetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetMaximumSpeedResponse>>(AsyncGetMaximumSpeedRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetMaximumSpeedResponse>> PrepareAsyncGetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetMaximumSpeedResponse>>(PrepareAsyncGetMaximumSpeedRaw(context, request, cq)); - } - ::grpc::Status SetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetMaximumSpeedResponse>> AsyncSetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetMaximumSpeedResponse>>(AsyncSetMaximumSpeedRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetMaximumSpeedResponse>> PrepareAsyncSetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetMaximumSpeedResponse>>(PrepareAsyncSetMaximumSpeedRaw(context, request, cq)); - } ::grpc::Status GetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest& request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>> AsyncGetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>>(AsyncGetReturnToLaunchAltitudeRaw(context, request, cq)); @@ -713,10 +669,6 @@ class ActionService final { void GetTakeoffAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetTakeoffAltitudeRequest* request, ::mavsdk::rpc::action::GetTakeoffAltitudeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void SetTakeoffAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest* request, ::mavsdk::rpc::action::SetTakeoffAltitudeResponse* response, std::function) override; void SetTakeoffAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest* request, ::mavsdk::rpc::action::SetTakeoffAltitudeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void GetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response, std::function) override; - void GetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response, ::grpc::ClientUnaryReactor* reactor) override; - void SetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response, std::function) override; - void SetMaximumSpeed(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void GetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response, std::function) override; void GetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response, ::grpc::ClientUnaryReactor* reactor) override; void SetReturnToLaunchAltitude(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest* request, ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse* response, std::function) override; @@ -770,10 +722,6 @@ class ActionService final { ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetTakeoffAltitudeResponse>* PrepareAsyncGetTakeoffAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetTakeoffAltitudeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetTakeoffAltitudeResponse>* AsyncSetTakeoffAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetTakeoffAltitudeResponse>* PrepareAsyncSetTakeoffAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetMaximumSpeedResponse>* AsyncGetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetMaximumSpeedResponse>* PrepareAsyncGetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetMaximumSpeedResponse>* AsyncSetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetMaximumSpeedResponse>* PrepareAsyncSetMaximumSpeedRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>* AsyncGetReturnToLaunchAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>* PrepareAsyncGetReturnToLaunchAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>* AsyncSetReturnToLaunchAltitudeRaw(::grpc::ClientContext* context, const ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest& request, ::grpc::CompletionQueue* cq) override; @@ -798,8 +746,6 @@ class ActionService final { const ::grpc::internal::RpcMethod rpcmethod_TransitionToMulticopter_; const ::grpc::internal::RpcMethod rpcmethod_GetTakeoffAltitude_; const ::grpc::internal::RpcMethod rpcmethod_SetTakeoffAltitude_; - const ::grpc::internal::RpcMethod rpcmethod_GetMaximumSpeed_; - const ::grpc::internal::RpcMethod rpcmethod_SetMaximumSpeed_; const ::grpc::internal::RpcMethod rpcmethod_GetReturnToLaunchAltitude_; const ::grpc::internal::RpcMethod rpcmethod_SetReturnToLaunchAltitude_; const ::grpc::internal::RpcMethod rpcmethod_SetCurrentSpeed_; @@ -921,12 +867,6 @@ class ActionService final { // Set takeoff altitude (in meters above ground). virtual ::grpc::Status SetTakeoffAltitude(::grpc::ServerContext* context, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest* request, ::mavsdk::rpc::action::SetTakeoffAltitudeResponse* response); // - // Get the vehicle maximum speed (in metres/second). - virtual ::grpc::Status GetMaximumSpeed(::grpc::ServerContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response); - // - // Set vehicle maximum speed (in metres/second). - virtual ::grpc::Status SetMaximumSpeed(::grpc::ServerContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response); - // // Get the return to launch minimum return altitude (in meters). virtual ::grpc::Status GetReturnToLaunchAltitude(::grpc::ServerContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response); // @@ -1300,52 +1240,12 @@ class ActionService final { } }; template - class WithAsyncMethod_GetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_GetMaximumSpeed() { - ::grpc::Service::MarkMethodAsync(18); - } - ~WithAsyncMethod_GetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::GetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetMaximumSpeed(::grpc::ServerContext* context, ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::action::GetMaximumSpeedResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_SetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_SetMaximumSpeed() { - ::grpc::Service::MarkMethodAsync(19); - } - ~WithAsyncMethod_SetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::SetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetMaximumSpeed(::grpc::ServerContext* context, ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::action::SetMaximumSpeedResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithAsyncMethod_GetReturnToLaunchAltitude : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_GetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodAsync(20); + ::grpc::Service::MarkMethodAsync(18); } ~WithAsyncMethod_GetReturnToLaunchAltitude() override { BaseClassMustBeDerivedFromService(this); @@ -1356,7 +1256,7 @@ class ActionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetReturnToLaunchAltitude(::grpc::ServerContext* context, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1365,7 +1265,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodAsync(21); + ::grpc::Service::MarkMethodAsync(19); } ~WithAsyncMethod_SetReturnToLaunchAltitude() override { BaseClassMustBeDerivedFromService(this); @@ -1376,7 +1276,7 @@ class ActionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetReturnToLaunchAltitude(::grpc::ServerContext* context, ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1385,7 +1285,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SetCurrentSpeed() { - ::grpc::Service::MarkMethodAsync(22); + ::grpc::Service::MarkMethodAsync(20); } ~WithAsyncMethod_SetCurrentSpeed() override { BaseClassMustBeDerivedFromService(this); @@ -1396,10 +1296,10 @@ class ActionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetCurrentSpeed(::grpc::ServerContext* context, ::mavsdk::rpc::action::SetCurrentSpeedRequest* request, ::grpc::ServerAsyncResponseWriter< ::mavsdk::rpc::action::SetCurrentSpeedResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_Arm > > > > > > > > > > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_Arm > > > > > > > > > > > > > > > > > > > > AsyncService; template class WithCallbackMethod_Arm : public BaseClass { private: @@ -1887,72 +1787,18 @@ class ActionService final { ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::action::SetTakeoffAltitudeRequest* /*request*/, ::mavsdk::rpc::action::SetTakeoffAltitudeResponse* /*response*/) { return nullptr; } }; template - class WithCallbackMethod_GetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_GetMaximumSpeed() { - ::grpc::Service::MarkMethodCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::GetMaximumSpeedRequest, ::mavsdk::rpc::action::GetMaximumSpeedResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* request, ::mavsdk::rpc::action::GetMaximumSpeedResponse* response) { return this->GetMaximumSpeed(context, request, response); }));} - void SetMessageAllocatorFor_GetMaximumSpeed( - ::grpc::MessageAllocator< ::mavsdk::rpc::action::GetMaximumSpeedRequest, ::mavsdk::rpc::action::GetMaximumSpeedResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(18); - static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::GetMaximumSpeedRequest, ::mavsdk::rpc::action::GetMaximumSpeedResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_GetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::GetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* GetMaximumSpeed( - ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::GetMaximumSpeedResponse* /*response*/) { return nullptr; } - }; - template - class WithCallbackMethod_SetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithCallbackMethod_SetMaximumSpeed() { - ::grpc::Service::MarkMethodCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::SetMaximumSpeedRequest, ::mavsdk::rpc::action::SetMaximumSpeedResponse>( - [this]( - ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* request, ::mavsdk::rpc::action::SetMaximumSpeedResponse* response) { return this->SetMaximumSpeed(context, request, response); }));} - void SetMessageAllocatorFor_SetMaximumSpeed( - ::grpc::MessageAllocator< ::mavsdk::rpc::action::SetMaximumSpeedRequest, ::mavsdk::rpc::action::SetMaximumSpeedResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(19); - static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::SetMaximumSpeedRequest, ::mavsdk::rpc::action::SetMaximumSpeedResponse>*>(handler) - ->SetMessageAllocator(allocator); - } - ~WithCallbackMethod_SetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::SetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetMaximumSpeed( - ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::SetMaximumSpeedResponse* /*response*/) { return nullptr; } - }; - template class WithCallbackMethod_GetReturnToLaunchAltitude : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_GetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodCallback(20, + ::grpc::Service::MarkMethodCallback(18, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest* request, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse* response) { return this->GetReturnToLaunchAltitude(context, request, response); }));} void SetMessageAllocatorFor_GetReturnToLaunchAltitude( ::grpc::MessageAllocator< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(20); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(18); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -1973,13 +1819,13 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodCallback(21, + ::grpc::Service::MarkMethodCallback(19, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest* request, ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse* response) { return this->SetReturnToLaunchAltitude(context, request, response); }));} void SetMessageAllocatorFor_SetReturnToLaunchAltitude( ::grpc::MessageAllocator< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(21); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(19); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -2000,13 +1846,13 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithCallbackMethod_SetCurrentSpeed() { - ::grpc::Service::MarkMethodCallback(22, + ::grpc::Service::MarkMethodCallback(20, new ::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::SetCurrentSpeedRequest, ::mavsdk::rpc::action::SetCurrentSpeedResponse>( [this]( ::grpc::CallbackServerContext* context, const ::mavsdk::rpc::action::SetCurrentSpeedRequest* request, ::mavsdk::rpc::action::SetCurrentSpeedResponse* response) { return this->SetCurrentSpeed(context, request, response); }));} void SetMessageAllocatorFor_SetCurrentSpeed( ::grpc::MessageAllocator< ::mavsdk::rpc::action::SetCurrentSpeedRequest, ::mavsdk::rpc::action::SetCurrentSpeedResponse>* allocator) { - ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(22); + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(20); static_cast<::grpc::internal::CallbackUnaryHandler< ::mavsdk::rpc::action::SetCurrentSpeedRequest, ::mavsdk::rpc::action::SetCurrentSpeedResponse>*>(handler) ->SetMessageAllocator(allocator); } @@ -2021,7 +1867,7 @@ class ActionService final { virtual ::grpc::ServerUnaryReactor* SetCurrentSpeed( ::grpc::CallbackServerContext* /*context*/, const ::mavsdk::rpc::action::SetCurrentSpeedRequest* /*request*/, ::mavsdk::rpc::action::SetCurrentSpeedResponse* /*response*/) { return nullptr; } }; - typedef WithCallbackMethod_Arm > > > > > > > > > > > > > > > > > > > > > > CallbackService; + typedef WithCallbackMethod_Arm > > > > > > > > > > > > > > > > > > > > CallbackService; typedef CallbackService ExperimentalCallbackService; template class WithGenericMethod_Arm : public BaseClass { @@ -2330,46 +2176,12 @@ class ActionService final { } }; template - class WithGenericMethod_GetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_GetMaximumSpeed() { - ::grpc::Service::MarkMethodGeneric(18); - } - ~WithGenericMethod_GetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::GetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_SetMaximumSpeed() { - ::grpc::Service::MarkMethodGeneric(19); - } - ~WithGenericMethod_SetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::SetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithGenericMethod_GetReturnToLaunchAltitude : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_GetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodGeneric(20); + ::grpc::Service::MarkMethodGeneric(18); } ~WithGenericMethod_GetReturnToLaunchAltitude() override { BaseClassMustBeDerivedFromService(this); @@ -2386,7 +2198,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodGeneric(21); + ::grpc::Service::MarkMethodGeneric(19); } ~WithGenericMethod_SetReturnToLaunchAltitude() override { BaseClassMustBeDerivedFromService(this); @@ -2403,7 +2215,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SetCurrentSpeed() { - ::grpc::Service::MarkMethodGeneric(22); + ::grpc::Service::MarkMethodGeneric(20); } ~WithGenericMethod_SetCurrentSpeed() override { BaseClassMustBeDerivedFromService(this); @@ -2775,52 +2587,12 @@ class ActionService final { } }; template - class WithRawMethod_GetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_GetMaximumSpeed() { - ::grpc::Service::MarkMethodRaw(18); - } - ~WithRawMethod_GetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::GetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetMaximumSpeed(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_SetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_SetMaximumSpeed() { - ::grpc::Service::MarkMethodRaw(19); - } - ~WithRawMethod_SetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::SetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetMaximumSpeed(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithRawMethod_GetReturnToLaunchAltitude : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_GetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodRaw(20); + ::grpc::Service::MarkMethodRaw(18); } ~WithRawMethod_GetReturnToLaunchAltitude() override { BaseClassMustBeDerivedFromService(this); @@ -2831,7 +2603,7 @@ class ActionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetReturnToLaunchAltitude(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2840,7 +2612,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodRaw(21); + ::grpc::Service::MarkMethodRaw(19); } ~WithRawMethod_SetReturnToLaunchAltitude() override { BaseClassMustBeDerivedFromService(this); @@ -2851,7 +2623,7 @@ class ActionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetReturnToLaunchAltitude(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2860,7 +2632,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SetCurrentSpeed() { - ::grpc::Service::MarkMethodRaw(22); + ::grpc::Service::MarkMethodRaw(20); } ~WithRawMethod_SetCurrentSpeed() override { BaseClassMustBeDerivedFromService(this); @@ -2871,7 +2643,7 @@ class ActionService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSetCurrentSpeed(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3271,56 +3043,12 @@ class ActionService final { ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } }; template - class WithRawCallbackMethod_GetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_GetMaximumSpeed() { - ::grpc::Service::MarkMethodRawCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetMaximumSpeed(context, request, response); })); - } - ~WithRawCallbackMethod_GetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::GetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* GetMaximumSpeed( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template - class WithRawCallbackMethod_SetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawCallbackMethod_SetMaximumSpeed() { - ::grpc::Service::MarkMethodRawCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this]( - ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetMaximumSpeed(context, request, response); })); - } - ~WithRawCallbackMethod_SetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::SetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual ::grpc::ServerUnaryReactor* SetMaximumSpeed( - ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } - }; - template class WithRawCallbackMethod_GetReturnToLaunchAltitude : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_GetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodRawCallback(20, + ::grpc::Service::MarkMethodRawCallback(18, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->GetReturnToLaunchAltitude(context, request, response); })); @@ -3342,7 +3070,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodRawCallback(21, + ::grpc::Service::MarkMethodRawCallback(19, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetReturnToLaunchAltitude(context, request, response); })); @@ -3364,7 +3092,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawCallbackMethod_SetCurrentSpeed() { - ::grpc::Service::MarkMethodRawCallback(22, + ::grpc::Service::MarkMethodRawCallback(20, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this]( ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SetCurrentSpeed(context, request, response); })); @@ -3867,66 +3595,12 @@ class ActionService final { virtual ::grpc::Status StreamedSetTakeoffAltitude(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::action::SetTakeoffAltitudeRequest,::mavsdk::rpc::action::SetTakeoffAltitudeResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_GetMaximumSpeed() { - ::grpc::Service::MarkMethodStreamed(18, - new ::grpc::internal::StreamedUnaryHandler< - ::mavsdk::rpc::action::GetMaximumSpeedRequest, ::mavsdk::rpc::action::GetMaximumSpeedResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::mavsdk::rpc::action::GetMaximumSpeedRequest, ::mavsdk::rpc::action::GetMaximumSpeedResponse>* streamer) { - return this->StreamedGetMaximumSpeed(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_GetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::GetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::GetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetMaximumSpeed(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::action::GetMaximumSpeedRequest,::mavsdk::rpc::action::GetMaximumSpeedResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SetMaximumSpeed : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_SetMaximumSpeed() { - ::grpc::Service::MarkMethodStreamed(19, - new ::grpc::internal::StreamedUnaryHandler< - ::mavsdk::rpc::action::SetMaximumSpeedRequest, ::mavsdk::rpc::action::SetMaximumSpeedResponse>( - [this](::grpc::ServerContext* context, - ::grpc::ServerUnaryStreamer< - ::mavsdk::rpc::action::SetMaximumSpeedRequest, ::mavsdk::rpc::action::SetMaximumSpeedResponse>* streamer) { - return this->StreamedSetMaximumSpeed(context, - streamer); - })); - } - ~WithStreamedUnaryMethod_SetMaximumSpeed() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SetMaximumSpeed(::grpc::ServerContext* /*context*/, const ::mavsdk::rpc::action::SetMaximumSpeedRequest* /*request*/, ::mavsdk::rpc::action::SetMaximumSpeedResponse* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSetMaximumSpeed(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::action::SetMaximumSpeedRequest,::mavsdk::rpc::action::SetMaximumSpeedResponse>* server_unary_streamer) = 0; - }; - template class WithStreamedUnaryMethod_GetReturnToLaunchAltitude : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_GetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodStreamed(20, + ::grpc::Service::MarkMethodStreamed(18, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse>( [this](::grpc::ServerContext* context, @@ -3953,7 +3627,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SetReturnToLaunchAltitude() { - ::grpc::Service::MarkMethodStreamed(21, + ::grpc::Service::MarkMethodStreamed(19, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest, ::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse>( [this](::grpc::ServerContext* context, @@ -3980,7 +3654,7 @@ class ActionService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SetCurrentSpeed() { - ::grpc::Service::MarkMethodStreamed(22, + ::grpc::Service::MarkMethodStreamed(20, new ::grpc::internal::StreamedUnaryHandler< ::mavsdk::rpc::action::SetCurrentSpeedRequest, ::mavsdk::rpc::action::SetCurrentSpeedResponse>( [this](::grpc::ServerContext* context, @@ -4001,9 +3675,9 @@ class ActionService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedSetCurrentSpeed(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::mavsdk::rpc::action::SetCurrentSpeedRequest,::mavsdk::rpc::action::SetCurrentSpeedResponse>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_Arm > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_Arm > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_Arm > > > > > > > > > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_Arm > > > > > > > > > > > > > > > > > > > > StreamedService; }; } // namespace action diff --git a/src/mavsdk_server/src/generated/action/action.pb.cc b/src/mavsdk_server/src/generated/action/action.pb.cc index 980dbe17c..61a9ed2ec 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.cc +++ b/src/mavsdk_server/src/generated/action/action.pb.cc @@ -122,25 +122,6 @@ struct SetReturnToLaunchAltitudeRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeRequestDefaultTypeInternal _SetReturnToLaunchAltitudeRequest_default_instance_; -inline constexpr SetMaximumSpeedRequest::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : speed_{0}, - _cached_size_{0} {} - -template -PROTOBUF_CONSTEXPR SetMaximumSpeedRequest::SetMaximumSpeedRequest(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SetMaximumSpeedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetMaximumSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetMaximumSpeedRequestDefaultTypeInternal() {} - union { - SetMaximumSpeedRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedRequestDefaultTypeInternal _SetMaximumSpeedRequest_default_instance_; - inline constexpr SetCurrentSpeedRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : speed_m_s_{0}, @@ -285,18 +266,6 @@ struct GetReturnToLaunchAltitudeRequestDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeRequestDefaultTypeInternal _GetReturnToLaunchAltitudeRequest_default_instance_; - template -PROTOBUF_CONSTEXPR GetMaximumSpeedRequest::GetMaximumSpeedRequest(::_pbi::ConstantInitialized) {} -struct GetMaximumSpeedRequestDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMaximumSpeedRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetMaximumSpeedRequestDefaultTypeInternal() {} - union { - GetMaximumSpeedRequest _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedRequestDefaultTypeInternal _GetMaximumSpeedRequest_default_instance_; inline constexpr DoOrbitRequest::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept @@ -513,25 +482,6 @@ struct SetReturnToLaunchAltitudeResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetReturnToLaunchAltitudeResponseDefaultTypeInternal _SetReturnToLaunchAltitudeResponse_default_instance_; -inline constexpr SetMaximumSpeedResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr} {} - -template -PROTOBUF_CONSTEXPR SetMaximumSpeedResponse::SetMaximumSpeedResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct SetMaximumSpeedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SetMaximumSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SetMaximumSpeedResponseDefaultTypeInternal() {} - union { - SetMaximumSpeedResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetMaximumSpeedResponseDefaultTypeInternal _SetMaximumSpeedResponse_default_instance_; - inline constexpr SetCurrentSpeedResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -724,26 +674,6 @@ struct GetReturnToLaunchAltitudeResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetReturnToLaunchAltitudeResponseDefaultTypeInternal _GetReturnToLaunchAltitudeResponse_default_instance_; -inline constexpr GetMaximumSpeedResponse::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - action_result_{nullptr}, - speed_{0} {} - -template -PROTOBUF_CONSTEXPR GetMaximumSpeedResponse::GetMaximumSpeedResponse(::_pbi::ConstantInitialized) - : _impl_(::_pbi::ConstantInitialized()) {} -struct GetMaximumSpeedResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GetMaximumSpeedResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GetMaximumSpeedResponseDefaultTypeInternal() {} - union { - GetMaximumSpeedResponse _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMaximumSpeedResponseDefaultTypeInternal _GetMaximumSpeedResponse_default_instance_; - inline constexpr DoOrbitResponse::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, @@ -822,7 +752,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT } // namespace action } // namespace rpc } // namespace mavsdk -static ::_pb::Metadata file_level_metadata_action_2faction_2eproto[47]; +static ::_pb::Metadata file_level_metadata_action_2faction_2eproto[43]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_action_2faction_2eproto[2]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_action_2faction_2eproto = nullptr; @@ -1168,45 +1098,6 @@ const ::uint32_t TableStruct_action_2faction_2eproto::offsets[] PROTOBUF_SECTION PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetTakeoffAltitudeResponse, _impl_.action_result_), 0, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, _impl_.action_result_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetMaximumSpeedResponse, _impl_.speed_), - 0, - ~0u, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedRequest, _impl_.speed_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedResponse, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ~0u, // no _split_ - ~0u, // no sizeof(Split) - PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::SetMaximumSpeedResponse, _impl_.action_result_), - 0, - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1314,17 +1205,13 @@ static const ::_pbi::MigrationSchema {308, 318, -1, sizeof(::mavsdk::rpc::action::GetTakeoffAltitudeResponse)}, {320, -1, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeRequest)}, {329, 338, -1, sizeof(::mavsdk::rpc::action::SetTakeoffAltitudeResponse)}, - {339, -1, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedRequest)}, - {347, 357, -1, sizeof(::mavsdk::rpc::action::GetMaximumSpeedResponse)}, - {359, -1, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedRequest)}, - {368, 377, -1, sizeof(::mavsdk::rpc::action::SetMaximumSpeedResponse)}, - {378, -1, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest)}, - {386, 396, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse)}, - {398, -1, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest)}, - {407, 416, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse)}, - {417, -1, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedRequest)}, - {426, 435, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedResponse)}, - {436, -1, -1, sizeof(::mavsdk::rpc::action::ActionResult)}, + {339, -1, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeRequest)}, + {347, 357, -1, sizeof(::mavsdk::rpc::action::GetReturnToLaunchAltitudeResponse)}, + {359, -1, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeRequest)}, + {368, 377, -1, sizeof(::mavsdk::rpc::action::SetReturnToLaunchAltitudeResponse)}, + {378, -1, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedRequest)}, + {387, 396, -1, sizeof(::mavsdk::rpc::action::SetCurrentSpeedResponse)}, + {397, -1, -1, sizeof(::mavsdk::rpc::action::ActionResult)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1364,10 +1251,6 @@ static const ::_pb::Message* const file_default_instances[] = { &::mavsdk::rpc::action::_GetTakeoffAltitudeResponse_default_instance_._instance, &::mavsdk::rpc::action::_SetTakeoffAltitudeRequest_default_instance_._instance, &::mavsdk::rpc::action::_SetTakeoffAltitudeResponse_default_instance_._instance, - &::mavsdk::rpc::action::_GetMaximumSpeedRequest_default_instance_._instance, - &::mavsdk::rpc::action::_GetMaximumSpeedResponse_default_instance_._instance, - &::mavsdk::rpc::action::_SetMaximumSpeedRequest_default_instance_._instance, - &::mavsdk::rpc::action::_SetMaximumSpeedResponse_default_instance_._instance, &::mavsdk::rpc::action::_GetReturnToLaunchAltitudeRequest_default_instance_._instance, &::mavsdk::rpc::action::_GetReturnToLaunchAltitudeResponse_default_instance_._instance, &::mavsdk::rpc::action::_SetReturnToLaunchAltitudeRequest_default_instance_._instance, @@ -1432,102 +1315,90 @@ const char descriptor_table_protodef_action_2faction_2eproto[] PROTOBUF_SECTION_ "tTakeoffAltitudeRequest\022\020\n\010altitude\030\001 \001(" "\002\"T\n\032SetTakeoffAltitudeResponse\0226\n\ractio" "n_result\030\001 \001(\0132\037.mavsdk.rpc.action.Actio" - "nResult\"\030\n\026GetMaximumSpeedRequest\"`\n\027Get" - "MaximumSpeedResponse\0226\n\raction_result\030\001 " - "\001(\0132\037.mavsdk.rpc.action.ActionResult\022\r\n\005" - "speed\030\002 \001(\002\"\'\n\026SetMaximumSpeedRequest\022\r\n" - "\005speed\030\001 \001(\002\"Q\n\027SetMaximumSpeedResponse\022" - "6\n\raction_result\030\001 \001(\0132\037.mavsdk.rpc.acti" - "on.ActionResult\"\"\n GetReturnToLaunchAlti" - "tudeRequest\"x\n!GetReturnToLaunchAltitude" - "Response\0226\n\raction_result\030\001 \001(\0132\037.mavsdk" - ".rpc.action.ActionResult\022\033\n\023relative_alt" - "itude_m\030\002 \001(\002\"\?\n SetReturnToLaunchAltitu" - "deRequest\022\033\n\023relative_altitude_m\030\001 \001(\002\"[" - "\n!SetReturnToLaunchAltitudeResponse\0226\n\ra" + "nResult\"\"\n GetReturnToLaunchAltitudeRequ" + "est\"x\n!GetReturnToLaunchAltitudeResponse" + "\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.rpc.act" + "ion.ActionResult\022\033\n\023relative_altitude_m\030" + "\002 \001(\002\"\?\n SetReturnToLaunchAltitudeReques" + "t\022\033\n\023relative_altitude_m\030\001 \001(\002\"[\n!SetRet" + "urnToLaunchAltitudeResponse\0226\n\raction_re" + "sult\030\001 \001(\0132\037.mavsdk.rpc.action.ActionRes" + "ult\"+\n\026SetCurrentSpeedRequest\022\021\n\tspeed_m" + "_s\030\001 \001(\002\"Q\n\027SetCurrentSpeedResponse\0226\n\ra" "ction_result\030\001 \001(\0132\037.mavsdk.rpc.action.A" - "ctionResult\"+\n\026SetCurrentSpeedRequest\022\021\n" - "\tspeed_m_s\030\001 \001(\002\"Q\n\027SetCurrentSpeedRespo" - "nse\0226\n\raction_result\030\001 \001(\0132\037.mavsdk.rpc." - "action.ActionResult\"\215\004\n\014ActionResult\0226\n\006" - "result\030\001 \001(\0162&.mavsdk.rpc.action.ActionR" - "esult.Result\022\022\n\nresult_str\030\002 \001(\t\"\260\003\n\006Res" - "ult\022\022\n\016RESULT_UNKNOWN\020\000\022\022\n\016RESULT_SUCCES" - "S\020\001\022\024\n\020RESULT_NO_SYSTEM\020\002\022\033\n\027RESULT_CONN" - "ECTION_ERROR\020\003\022\017\n\013RESULT_BUSY\020\004\022\031\n\025RESUL" - "T_COMMAND_DENIED\020\005\022.\n*RESULT_COMMAND_DEN" - "IED_LANDED_STATE_UNKNOWN\020\006\022$\n RESULT_COM" - "MAND_DENIED_NOT_LANDED\020\007\022\022\n\016RESULT_TIMEO" - "UT\020\010\022*\n&RESULT_VTOL_TRANSITION_SUPPORT_U" - "NKNOWN\020\t\022%\n!RESULT_NO_VTOL_TRANSITION_SU" - "PPORT\020\n\022\032\n\026RESULT_PARAMETER_ERROR\020\013\022\026\n\022R" - "ESULT_UNSUPPORTED\020\014\022\021\n\rRESULT_FAILED\020\r\022\033" - "\n\027RESULT_INVALID_ARGUMENT\020\016*\363\001\n\020OrbitYaw" - "Behavior\0222\n.ORBIT_YAW_BEHAVIOR_HOLD_FRON" - "T_TO_CIRCLE_CENTER\020\000\022+\n\'ORBIT_YAW_BEHAVI" - "OR_HOLD_INITIAL_HEADING\020\001\022#\n\037ORBIT_YAW_B" - "EHAVIOR_UNCONTROLLED\020\002\0223\n/ORBIT_YAW_BEHA" - "VIOR_HOLD_FRONT_TANGENT_TO_CIRCLE\020\003\022$\n O" - "RBIT_YAW_BEHAVIOR_RC_CONTROLLED\020\0042\375\021\n\rAc" - "tionService\022F\n\003Arm\022\035.mavsdk.rpc.action.A" - "rmRequest\032\036.mavsdk.rpc.action.ArmRespons" - "e\"\000\022U\n\010ArmForce\022\".mavsdk.rpc.action.ArmF" - "orceRequest\032#.mavsdk.rpc.action.ArmForce" - "Response\"\000\022O\n\006Disarm\022 .mavsdk.rpc.action" - ".DisarmRequest\032!.mavsdk.rpc.action.Disar" - "mResponse\"\000\022R\n\007Takeoff\022!.mavsdk.rpc.acti" - "on.TakeoffRequest\032\".mavsdk.rpc.action.Ta" - "keoffResponse\"\000\022I\n\004Land\022\036.mavsdk.rpc.act" - "ion.LandRequest\032\037.mavsdk.rpc.action.Land" - "Response\"\000\022O\n\006Reboot\022 .mavsdk.rpc.action" - ".RebootRequest\032!.mavsdk.rpc.action.Reboo" - "tResponse\"\000\022U\n\010Shutdown\022\".mavsdk.rpc.act" - "ion.ShutdownRequest\032#.mavsdk.rpc.action." - "ShutdownResponse\"\000\022X\n\tTerminate\022#.mavsdk" - ".rpc.action.TerminateRequest\032$.mavsdk.rp" - "c.action.TerminateResponse\"\000\022I\n\004Kill\022\036.m" - "avsdk.rpc.action.KillRequest\032\037.mavsdk.rp" - "c.action.KillResponse\"\000\022g\n\016ReturnToLaunc" - "h\022(.mavsdk.rpc.action.ReturnToLaunchRequ" - "est\032).mavsdk.rpc.action.ReturnToLaunchRe" - "sponse\"\000\022a\n\014GotoLocation\022&.mavsdk.rpc.ac" - "tion.GotoLocationRequest\032\'.mavsdk.rpc.ac" - "tion.GotoLocationResponse\"\000\022R\n\007DoOrbit\022!" - ".mavsdk.rpc.action.DoOrbitRequest\032\".mavs" - "dk.rpc.action.DoOrbitResponse\"\000\022I\n\004Hold\022" - "\036.mavsdk.rpc.action.HoldRequest\032\037.mavsdk" - ".rpc.action.HoldResponse\"\000\022^\n\013SetActuato" - "r\022%.mavsdk.rpc.action.SetActuatorRequest" - "\032&.mavsdk.rpc.action.SetActuatorResponse" - "\"\000\022|\n\025TransitionToFixedwing\022/.mavsdk.rpc" - ".action.TransitionToFixedwingRequest\0320.m" - "avsdk.rpc.action.TransitionToFixedwingRe" - "sponse\"\000\022\202\001\n\027TransitionToMulticopter\0221.m" - "avsdk.rpc.action.TransitionToMulticopter" - "Request\0322.mavsdk.rpc.action.TransitionTo" - "MulticopterResponse\"\000\022s\n\022GetTakeoffAltit" - "ude\022,.mavsdk.rpc.action.GetTakeoffAltitu" - "deRequest\032-.mavsdk.rpc.action.GetTakeoff" - "AltitudeResponse\"\000\022s\n\022SetTakeoffAltitude" - "\022,.mavsdk.rpc.action.SetTakeoffAltitudeR" - "equest\032-.mavsdk.rpc.action.SetTakeoffAlt" - "itudeResponse\"\000\022j\n\017GetMaximumSpeed\022).mav" - "sdk.rpc.action.GetMaximumSpeedRequest\032*." - "mavsdk.rpc.action.GetMaximumSpeedRespons" - "e\"\000\022j\n\017SetMaximumSpeed\022).mavsdk.rpc.acti" - "on.SetMaximumSpeedRequest\032*.mavsdk.rpc.a" - "ction.SetMaximumSpeedResponse\"\000\022\210\001\n\031GetR" - "eturnToLaunchAltitude\0223.mavsdk.rpc.actio" - "n.GetReturnToLaunchAltitudeRequest\0324.mav" - "sdk.rpc.action.GetReturnToLaunchAltitude" - "Response\"\000\022\210\001\n\031SetReturnToLaunchAltitude" - "\0223.mavsdk.rpc.action.SetReturnToLaunchAl" - "titudeRequest\0324.mavsdk.rpc.action.SetRet" - "urnToLaunchAltitudeResponse\"\000\022j\n\017SetCurr" - "entSpeed\022).mavsdk.rpc.action.SetCurrentS" - "peedRequest\032*.mavsdk.rpc.action.SetCurre" - "ntSpeedResponse\"\000B\037\n\020io.mavsdk.actionB\013A" - "ctionProtob\006proto3" + "ctionResult\"\215\004\n\014ActionResult\0226\n\006result\030\001" + " \001(\0162&.mavsdk.rpc.action.ActionResult.Re" + "sult\022\022\n\nresult_str\030\002 \001(\t\"\260\003\n\006Result\022\022\n\016R" + "ESULT_UNKNOWN\020\000\022\022\n\016RESULT_SUCCESS\020\001\022\024\n\020R" + "ESULT_NO_SYSTEM\020\002\022\033\n\027RESULT_CONNECTION_E" + "RROR\020\003\022\017\n\013RESULT_BUSY\020\004\022\031\n\025RESULT_COMMAN" + "D_DENIED\020\005\022.\n*RESULT_COMMAND_DENIED_LAND" + "ED_STATE_UNKNOWN\020\006\022$\n RESULT_COMMAND_DEN" + "IED_NOT_LANDED\020\007\022\022\n\016RESULT_TIMEOUT\020\010\022*\n&" + "RESULT_VTOL_TRANSITION_SUPPORT_UNKNOWN\020\t" + "\022%\n!RESULT_NO_VTOL_TRANSITION_SUPPORT\020\n\022" + "\032\n\026RESULT_PARAMETER_ERROR\020\013\022\026\n\022RESULT_UN" + "SUPPORTED\020\014\022\021\n\rRESULT_FAILED\020\r\022\033\n\027RESULT" + "_INVALID_ARGUMENT\020\016*\363\001\n\020OrbitYawBehavior" + "\0222\n.ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TO_CIR" + "CLE_CENTER\020\000\022+\n\'ORBIT_YAW_BEHAVIOR_HOLD_" + "INITIAL_HEADING\020\001\022#\n\037ORBIT_YAW_BEHAVIOR_" + "UNCONTROLLED\020\002\0223\n/ORBIT_YAW_BEHAVIOR_HOL" + "D_FRONT_TANGENT_TO_CIRCLE\020\003\022$\n ORBIT_YAW" + "_BEHAVIOR_RC_CONTROLLED\020\0042\245\020\n\rActionServ" + "ice\022F\n\003Arm\022\035.mavsdk.rpc.action.ArmReques" + "t\032\036.mavsdk.rpc.action.ArmResponse\"\000\022U\n\010A" + "rmForce\022\".mavsdk.rpc.action.ArmForceRequ" + "est\032#.mavsdk.rpc.action.ArmForceResponse" + "\"\000\022O\n\006Disarm\022 .mavsdk.rpc.action.DisarmR" + "equest\032!.mavsdk.rpc.action.DisarmRespons" + "e\"\000\022R\n\007Takeoff\022!.mavsdk.rpc.action.Takeo" + "ffRequest\032\".mavsdk.rpc.action.TakeoffRes" + "ponse\"\000\022I\n\004Land\022\036.mavsdk.rpc.action.Land" + "Request\032\037.mavsdk.rpc.action.LandResponse" + "\"\000\022O\n\006Reboot\022 .mavsdk.rpc.action.RebootR" + "equest\032!.mavsdk.rpc.action.RebootRespons" + "e\"\000\022U\n\010Shutdown\022\".mavsdk.rpc.action.Shut" + "downRequest\032#.mavsdk.rpc.action.Shutdown" + "Response\"\000\022X\n\tTerminate\022#.mavsdk.rpc.act" + "ion.TerminateRequest\032$.mavsdk.rpc.action" + ".TerminateResponse\"\000\022I\n\004Kill\022\036.mavsdk.rp" + "c.action.KillRequest\032\037.mavsdk.rpc.action" + ".KillResponse\"\000\022g\n\016ReturnToLaunch\022(.mavs" + "dk.rpc.action.ReturnToLaunchRequest\032).ma" + "vsdk.rpc.action.ReturnToLaunchResponse\"\000" + "\022a\n\014GotoLocation\022&.mavsdk.rpc.action.Got" + "oLocationRequest\032\'.mavsdk.rpc.action.Got" + "oLocationResponse\"\000\022R\n\007DoOrbit\022!.mavsdk." + "rpc.action.DoOrbitRequest\032\".mavsdk.rpc.a" + "ction.DoOrbitResponse\"\000\022I\n\004Hold\022\036.mavsdk" + ".rpc.action.HoldRequest\032\037.mavsdk.rpc.act" + "ion.HoldResponse\"\000\022^\n\013SetActuator\022%.mavs" + "dk.rpc.action.SetActuatorRequest\032&.mavsd" + "k.rpc.action.SetActuatorResponse\"\000\022|\n\025Tr" + "ansitionToFixedwing\022/.mavsdk.rpc.action." + "TransitionToFixedwingRequest\0320.mavsdk.rp" + "c.action.TransitionToFixedwingResponse\"\000" + "\022\202\001\n\027TransitionToMulticopter\0221.mavsdk.rp" + "c.action.TransitionToMulticopterRequest\032" + "2.mavsdk.rpc.action.TransitionToMulticop" + "terResponse\"\000\022s\n\022GetTakeoffAltitude\022,.ma" + "vsdk.rpc.action.GetTakeoffAltitudeReques" + "t\032-.mavsdk.rpc.action.GetTakeoffAltitude" + "Response\"\000\022s\n\022SetTakeoffAltitude\022,.mavsd" + "k.rpc.action.SetTakeoffAltitudeRequest\032-" + ".mavsdk.rpc.action.SetTakeoffAltitudeRes" + "ponse\"\000\022\210\001\n\031GetReturnToLaunchAltitude\0223." + "mavsdk.rpc.action.GetReturnToLaunchAltit" + "udeRequest\0324.mavsdk.rpc.action.GetReturn" + "ToLaunchAltitudeResponse\"\000\022\210\001\n\031SetReturn" + "ToLaunchAltitude\0223.mavsdk.rpc.action.Set" + "ReturnToLaunchAltitudeRequest\0324.mavsdk.r" + "pc.action.SetReturnToLaunchAltitudeRespo" + "nse\"\000\022j\n\017SetCurrentSpeed\022).mavsdk.rpc.ac" + "tion.SetCurrentSpeedRequest\032*.mavsdk.rpc" + ".action.SetCurrentSpeedResponse\"\000B\037\n\020io." + "mavsdk.actionB\013ActionProtob\006proto3" }; static const ::_pbi::DescriptorTable* const descriptor_table_action_2faction_2eproto_deps[1] = { @@ -1537,13 +1408,13 @@ static ::absl::once_flag descriptor_table_action_2faction_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_action_2faction_2eproto = { false, false, - 6018, + 5554, descriptor_table_protodef_action_2faction_2eproto, "action/action.proto", &descriptor_table_action_2faction_2eproto_once, descriptor_table_action_2faction_2eproto_deps, 1, - 47, + 43, schemas, file_default_instances, TableStruct_action_2faction_2eproto::offsets, @@ -6950,24 +6821,24 @@ ::google::protobuf::Metadata SetTakeoffAltitudeResponse::GetMetadata() const { } // =================================================================== -class GetMaximumSpeedRequest::_Internal { +class GetReturnToLaunchAltitudeRequest::_Internal { public: }; -GetMaximumSpeedRequest::GetMaximumSpeedRequest(::google::protobuf::Arena* arena) +GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetMaximumSpeedRequest) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) } -GetMaximumSpeedRequest::GetMaximumSpeedRequest( +GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest( ::google::protobuf::Arena* arena, - const GetMaximumSpeedRequest& from) + const GetReturnToLaunchAltitudeRequest& from) : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetMaximumSpeedRequest* const _this = this; + GetReturnToLaunchAltitudeRequest* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetMaximumSpeedRequest) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) } @@ -6978,43 +6849,43 @@ GetMaximumSpeedRequest::GetMaximumSpeedRequest( -::google::protobuf::Metadata GetMaximumSpeedRequest::GetMetadata() const { +::google::protobuf::Metadata GetReturnToLaunchAltitudeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[36]); } // =================================================================== -class GetMaximumSpeedResponse::_Internal { +class GetReturnToLaunchAltitudeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const GetMaximumSpeedResponse* msg); + 8 * PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_); + static const ::mavsdk::rpc::action::ActionResult& action_result(const GetReturnToLaunchAltitudeResponse* msg); static void set_has_action_result(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::mavsdk::rpc::action::ActionResult& GetMaximumSpeedResponse::_Internal::action_result(const GetMaximumSpeedResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::_Internal::action_result(const GetReturnToLaunchAltitudeResponse* msg) { return *msg->_impl_.action_result_; } -GetMaximumSpeedResponse::GetMaximumSpeedResponse(::google::protobuf::Arena* arena) +GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetMaximumSpeedResponse) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) } -inline PROTOBUF_NDEBUG_INLINE GetMaximumSpeedResponse::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE GetReturnToLaunchAltitudeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) : _has_bits_{from._has_bits_}, _cached_size_{0} {} -GetMaximumSpeedResponse::GetMaximumSpeedResponse( +GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse( ::google::protobuf::Arena* arena, - const GetMaximumSpeedResponse& from) + const GetReturnToLaunchAltitudeResponse& from) : ::google::protobuf::Message(arena) { - GetMaximumSpeedResponse* const _this = this; + GetReturnToLaunchAltitudeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); @@ -7023,37 +6894,37 @@ GetMaximumSpeedResponse::GetMaximumSpeedResponse( _impl_.action_result_ = (cached_has_bits & 0x00000001u) ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) : nullptr; - _impl_.speed_ = from._impl_.speed_; + _impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetMaximumSpeedResponse) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) } -inline PROTOBUF_NDEBUG_INLINE GetMaximumSpeedResponse::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE GetReturnToLaunchAltitudeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : _cached_size_{0} {} -inline void GetMaximumSpeedResponse::SharedCtor(::_pb::Arena* arena) { +inline void GetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, action_result_), 0, - offsetof(Impl_, speed_) - + offsetof(Impl_, relative_altitude_m_) - offsetof(Impl_, action_result_) + - sizeof(Impl_::speed_)); + sizeof(Impl_::relative_altitude_m_)); } -GetMaximumSpeedResponse::~GetMaximumSpeedResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetMaximumSpeedResponse) +GetReturnToLaunchAltitudeResponse::~GetReturnToLaunchAltitudeResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } -inline void GetMaximumSpeedResponse::SharedDtor() { +inline void GetReturnToLaunchAltitudeResponse::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); delete _impl_.action_result_; _impl_.~Impl_(); } -PROTOBUF_NOINLINE void GetMaximumSpeedResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetMaximumSpeedResponse) +PROTOBUF_NOINLINE void GetReturnToLaunchAltitudeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused @@ -7064,12 +6935,12 @@ PROTOBUF_NOINLINE void GetMaximumSpeedResponse::Clear() { ABSL_DCHECK(_impl_.action_result_ != nullptr); _impl_.action_result_->Clear(); } - _impl_.speed_ = 0; + _impl_.relative_altitude_m_ = 0; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* GetMaximumSpeedResponse::_InternalParse( +const char* GetReturnToLaunchAltitudeResponse::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; @@ -7077,9 +6948,9 @@ const char* GetMaximumSpeedResponse::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetMaximumSpeedResponse::_table_ = { +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetReturnToLaunchAltitudeResponse::_table_ = { { - PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_), 0, // no _extensions_ 2, 8, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7088,23 +6959,23 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetMaximumSpeedResponse::_table_ = { 2, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_GetMaximumSpeedResponse_default_instance_._instance, + &_GetReturnToLaunchAltitudeResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ - // float speed = 2; + // float relative_altitude_m = 2; {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.speed_)}}, + {21, 63, 0, PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_)}}, // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.action_result_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_)}}, }}, {{ 65535, 65535 }}, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // float speed = 2; - {PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.speed_), -1, 0, + // float relative_altitude_m = 2; + {PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_), -1, 0, (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, }}, {{ {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, @@ -7112,10 +6983,10 @@ const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetMaximumSpeedResponse::_table_ = { }}, }; -::uint8_t* GetMaximumSpeedResponse::_InternalSerialize( +::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetMaximumSpeedResponse) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; @@ -7127,16 +6998,16 @@ ::uint8_t* GetMaximumSpeedResponse::_InternalSerialize( _Internal::action_result(this).GetCachedSize(), target, stream); } - // float speed = 2; + // float relative_altitude_m = 2; static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); - float tmp_speed = this->_internal_speed(); - ::uint32_t raw_speed; - memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); - if (raw_speed != 0) { + float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); + ::uint32_t raw_relative_altitude_m; + memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); + if (raw_relative_altitude_m != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_speed(), target); + 2, this->_internal_relative_altitude_m(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7144,12 +7015,12 @@ ::uint8_t* GetMaximumSpeedResponse::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetMaximumSpeedResponse) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) return target; } -::size_t GetMaximumSpeedResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetMaximumSpeedResponse) +::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; @@ -7163,31 +7034,31 @@ ::size_t GetMaximumSpeedResponse::ByteSizeLong() const { 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); } - // float speed = 2; + // float relative_altitude_m = 2; static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); - float tmp_speed = this->_internal_speed(); - ::uint32_t raw_speed; - memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); - if (raw_speed != 0) { + float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); + ::uint32_t raw_relative_altitude_m; + memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); + if (raw_relative_altitude_m != 0) { total_size += 5; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData GetMaximumSpeedResponse::_class_data_ = { - GetMaximumSpeedResponse::MergeImpl, +const ::google::protobuf::Message::ClassData GetReturnToLaunchAltitudeResponse::_class_data_ = { + GetReturnToLaunchAltitudeResponse::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* GetMaximumSpeedResponse::GetClassData() const { +const ::google::protobuf::Message::ClassData* GetReturnToLaunchAltitudeResponse::GetClassData() const { return &_class_data_; } -void GetMaximumSpeedResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetMaximumSpeedResponse) +void GetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -7198,93 +7069,93 @@ void GetMaximumSpeedResponse::MergeImpl(::google::protobuf::Message& to_msg, con } static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); - float tmp_speed = from._internal_speed(); - ::uint32_t raw_speed; - memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); - if (raw_speed != 0) { - _this->_internal_set_speed(from._internal_speed()); + float tmp_relative_altitude_m = from._internal_relative_altitude_m(); + ::uint32_t raw_relative_altitude_m; + memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); + if (raw_relative_altitude_m != 0) { + _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void GetMaximumSpeedResponse::CopyFrom(const GetMaximumSpeedResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GetMaximumSpeedResponse) +void GetReturnToLaunchAltitudeResponse::CopyFrom(const GetReturnToLaunchAltitudeResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool GetMaximumSpeedResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool GetReturnToLaunchAltitudeResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* GetMaximumSpeedResponse::AccessCachedSize() const { +::_pbi::CachedSize* GetReturnToLaunchAltitudeResponse::AccessCachedSize() const { return &_impl_._cached_size_; } -void GetMaximumSpeedResponse::InternalSwap(GetMaximumSpeedResponse* PROTOBUF_RESTRICT other) { +void GetReturnToLaunchAltitudeResponse::InternalSwap(GetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.speed_) - + sizeof(GetMaximumSpeedResponse::_impl_.speed_) - - PROTOBUF_FIELD_OFFSET(GetMaximumSpeedResponse, _impl_.action_result_)>( + PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_) + + sizeof(GetReturnToLaunchAltitudeResponse::_impl_.relative_altitude_m_) + - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_)>( reinterpret_cast(&_impl_.action_result_), reinterpret_cast(&other->_impl_.action_result_)); } -::google::protobuf::Metadata GetMaximumSpeedResponse::GetMetadata() const { +::google::protobuf::Metadata GetReturnToLaunchAltitudeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[37]); } // =================================================================== -class SetMaximumSpeedRequest::_Internal { +class SetReturnToLaunchAltitudeRequest::_Internal { public: }; -SetMaximumSpeedRequest::SetMaximumSpeedRequest(::google::protobuf::Arena* arena) +SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetMaximumSpeedRequest) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) } -SetMaximumSpeedRequest::SetMaximumSpeedRequest( - ::google::protobuf::Arena* arena, const SetMaximumSpeedRequest& from) - : SetMaximumSpeedRequest(arena) { +SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest( + ::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeRequest& from) + : SetReturnToLaunchAltitudeRequest(arena) { MergeFrom(from); } -inline PROTOBUF_NDEBUG_INLINE SetMaximumSpeedRequest::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeRequest::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : _cached_size_{0} {} -inline void SetMaximumSpeedRequest::SharedCtor(::_pb::Arena* arena) { +inline void SetReturnToLaunchAltitudeRequest::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.speed_ = {}; + _impl_.relative_altitude_m_ = {}; } -SetMaximumSpeedRequest::~SetMaximumSpeedRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetMaximumSpeedRequest) +SetReturnToLaunchAltitudeRequest::~SetReturnToLaunchAltitudeRequest() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } -inline void SetMaximumSpeedRequest::SharedDtor() { +inline void SetReturnToLaunchAltitudeRequest::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); _impl_.~Impl_(); } -PROTOBUF_NOINLINE void SetMaximumSpeedRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetMaximumSpeedRequest) +PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.speed_ = 0; + _impl_.relative_altitude_m_ = 0; _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* SetMaximumSpeedRequest::_InternalParse( +const char* SetReturnToLaunchAltitudeRequest::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; @@ -7292,7 +7163,7 @@ const char* SetMaximumSpeedRequest::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetMaximumSpeedRequest::_table_ = { +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetReturnToLaunchAltitudeRequest::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ @@ -7303,17 +7174,17 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetMaximumSpeedRequest::_table_ = { 1, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries - &_SetMaximumSpeedRequest_default_instance_._instance, + &_SetReturnToLaunchAltitudeRequest_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ - // float speed = 1; + // float relative_altitude_m = 1; {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(SetMaximumSpeedRequest, _impl_.speed_)}}, + {13, 63, 0, PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_)}}, }}, {{ 65535, 65535 }}, {{ - // float speed = 1; - {PROTOBUF_FIELD_OFFSET(SetMaximumSpeedRequest, _impl_.speed_), 0, 0, + // float relative_altitude_m = 1; + {PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, }}, // no aux_entries @@ -7321,23 +7192,23 @@ const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetMaximumSpeedRequest::_table_ = { }}, }; -::uint8_t* SetMaximumSpeedRequest::_InternalSerialize( +::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetMaximumSpeedRequest) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - // float speed = 1; + // float relative_altitude_m = 1; static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); - float tmp_speed = this->_internal_speed(); - ::uint32_t raw_speed; - memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); - if (raw_speed != 0) { + float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); + ::uint32_t raw_relative_altitude_m; + memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); + if (raw_relative_altitude_m != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_speed(), target); + 1, this->_internal_relative_altitude_m(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -7345,115 +7216,115 @@ ::uint8_t* SetMaximumSpeedRequest::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetMaximumSpeedRequest) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) return target; } -::size_t SetMaximumSpeedRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetMaximumSpeedRequest) +::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // float speed = 1; + // float relative_altitude_m = 1; static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); - float tmp_speed = this->_internal_speed(); - ::uint32_t raw_speed; - memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); - if (raw_speed != 0) { + float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); + ::uint32_t raw_relative_altitude_m; + memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); + if (raw_relative_altitude_m != 0) { total_size += 5; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SetMaximumSpeedRequest::_class_data_ = { - SetMaximumSpeedRequest::MergeImpl, +const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeRequest::_class_data_ = { + SetReturnToLaunchAltitudeRequest::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* SetMaximumSpeedRequest::GetClassData() const { +const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeRequest::GetClassData() const { return &_class_data_; } -void SetMaximumSpeedRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetMaximumSpeedRequest) +void SetReturnToLaunchAltitudeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size."); - float tmp_speed = from._internal_speed(); - ::uint32_t raw_speed; - memcpy(&raw_speed, &tmp_speed, sizeof(tmp_speed)); - if (raw_speed != 0) { - _this->_internal_set_speed(from._internal_speed()); + float tmp_relative_altitude_m = from._internal_relative_altitude_m(); + ::uint32_t raw_relative_altitude_m; + memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); + if (raw_relative_altitude_m != 0) { + _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void SetMaximumSpeedRequest::CopyFrom(const SetMaximumSpeedRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetMaximumSpeedRequest) +void SetReturnToLaunchAltitudeRequest::CopyFrom(const SetReturnToLaunchAltitudeRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool SetMaximumSpeedRequest::IsInitialized() const { +PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeRequest::IsInitialized() const { return true; } -::_pbi::CachedSize* SetMaximumSpeedRequest::AccessCachedSize() const { +::_pbi::CachedSize* SetReturnToLaunchAltitudeRequest::AccessCachedSize() const { return &_impl_._cached_size_; } -void SetMaximumSpeedRequest::InternalSwap(SetMaximumSpeedRequest* PROTOBUF_RESTRICT other) { +void SetReturnToLaunchAltitudeRequest::InternalSwap(SetReturnToLaunchAltitudeRequest* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.speed_, other->_impl_.speed_); + swap(_impl_.relative_altitude_m_, other->_impl_.relative_altitude_m_); } -::google::protobuf::Metadata SetMaximumSpeedRequest::GetMetadata() const { +::google::protobuf::Metadata SetReturnToLaunchAltitudeRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[38]); } // =================================================================== -class SetMaximumSpeedResponse::_Internal { +class SetReturnToLaunchAltitudeResponse::_Internal { public: - using HasBits = decltype(std::declval()._impl_._has_bits_); + using HasBits = decltype(std::declval()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetMaximumSpeedResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetMaximumSpeedResponse* msg); + 8 * PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_); + static const ::mavsdk::rpc::action::ActionResult& action_result(const SetReturnToLaunchAltitudeResponse* msg); static void set_has_action_result(HasBits* has_bits) { (*has_bits)[0] |= 1u; } }; -const ::mavsdk::rpc::action::ActionResult& SetMaximumSpeedResponse::_Internal::action_result(const SetMaximumSpeedResponse* msg) { +const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::_Internal::action_result(const SetReturnToLaunchAltitudeResponse* msg) { return *msg->_impl_.action_result_; } -SetMaximumSpeedResponse::SetMaximumSpeedResponse(::google::protobuf::Arena* arena) +SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetMaximumSpeedResponse) + // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) } -inline PROTOBUF_NDEBUG_INLINE SetMaximumSpeedResponse::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, const Impl_& from) : _has_bits_{from._has_bits_}, _cached_size_{0} {} -SetMaximumSpeedResponse::SetMaximumSpeedResponse( +SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse( ::google::protobuf::Arena* arena, - const SetMaximumSpeedResponse& from) + const SetReturnToLaunchAltitudeResponse& from) : ::google::protobuf::Message(arena) { - SetMaximumSpeedResponse* const _this = this; + SetReturnToLaunchAltitudeResponse* const _this = this; (void)_this; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); @@ -7463,30 +7334,30 @@ SetMaximumSpeedResponse::SetMaximumSpeedResponse( ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) : nullptr; - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetMaximumSpeedResponse) + // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) } -inline PROTOBUF_NDEBUG_INLINE SetMaximumSpeedResponse::Impl_::Impl_( +inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeResponse::Impl_::Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena) : _cached_size_{0} {} -inline void SetMaximumSpeedResponse::SharedCtor(::_pb::Arena* arena) { +inline void SetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { new (&_impl_) Impl_(internal_visibility(), arena); _impl_.action_result_ = {}; } -SetMaximumSpeedResponse::~SetMaximumSpeedResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetMaximumSpeedResponse) +SetReturnToLaunchAltitudeResponse::~SetReturnToLaunchAltitudeResponse() { + // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } -inline void SetMaximumSpeedResponse::SharedDtor() { +inline void SetReturnToLaunchAltitudeResponse::SharedDtor() { ABSL_DCHECK(GetArena() == nullptr); delete _impl_.action_result_; _impl_.~Impl_(); } -PROTOBUF_NOINLINE void SetMaximumSpeedResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetMaximumSpeedResponse) +PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused @@ -7501,7 +7372,7 @@ PROTOBUF_NOINLINE void SetMaximumSpeedResponse::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* SetMaximumSpeedResponse::_InternalParse( +const char* SetReturnToLaunchAltitudeResponse::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; @@ -7509,9 +7380,9 @@ const char* SetMaximumSpeedResponse::_InternalParse( PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetMaximumSpeedResponse::_table_ = { +const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetReturnToLaunchAltitudeResponse::_table_ = { { - PROTOBUF_FIELD_OFFSET(SetMaximumSpeedResponse, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_), 0, // no _extensions_ 1, 0, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), @@ -7520,17 +7391,17 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetMaximumSpeedResponse::_table_ = { 1, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), - &_SetMaximumSpeedResponse_default_instance_._instance, + &_SetReturnToLaunchAltitudeResponse_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetMaximumSpeedResponse, _impl_.action_result_)}}, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_.action_result_)}}, }}, {{ 65535, 65535 }}, {{ // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(SetMaximumSpeedResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, + {PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, @@ -7538,10 +7409,10 @@ const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetMaximumSpeedResponse::_table_ = { }}, }; -::uint8_t* SetMaximumSpeedResponse::_InternalSerialize( +::uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetMaximumSpeedResponse) + // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; @@ -7558,12 +7429,12 @@ ::uint8_t* SetMaximumSpeedResponse::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetMaximumSpeedResponse) + // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) return target; } -::size_t SetMaximumSpeedResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetMaximumSpeedResponse) +::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; @@ -7580,18 +7451,18 @@ ::size_t SetMaximumSpeedResponse::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::google::protobuf::Message::ClassData SetMaximumSpeedResponse::_class_data_ = { - SetMaximumSpeedResponse::MergeImpl, +const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeResponse::_class_data_ = { + SetReturnToLaunchAltitudeResponse::MergeImpl, nullptr, // OnDemandRegisterArenaDtor }; -const ::google::protobuf::Message::ClassData* SetMaximumSpeedResponse::GetClassData() const { +const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeResponse::GetClassData() const { return &_class_data_; } -void SetMaximumSpeedResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetMaximumSpeedResponse) +void SetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -7603,716 +7474,35 @@ void SetMaximumSpeedResponse::MergeImpl(::google::protobuf::Message& to_msg, con _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void SetMaximumSpeedResponse::CopyFrom(const SetMaximumSpeedResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetMaximumSpeedResponse) +void SetReturnToLaunchAltitudeResponse::CopyFrom(const SetReturnToLaunchAltitudeResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) if (&from == this) return; Clear(); MergeFrom(from); } -PROTOBUF_NOINLINE bool SetMaximumSpeedResponse::IsInitialized() const { +PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeResponse::IsInitialized() const { return true; } -::_pbi::CachedSize* SetMaximumSpeedResponse::AccessCachedSize() const { +::_pbi::CachedSize* SetReturnToLaunchAltitudeResponse::AccessCachedSize() const { return &_impl_._cached_size_; } -void SetMaximumSpeedResponse::InternalSwap(SetMaximumSpeedResponse* PROTOBUF_RESTRICT other) { +void SetReturnToLaunchAltitudeResponse::InternalSwap(SetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); swap(_impl_.action_result_, other->_impl_.action_result_); } -::google::protobuf::Metadata SetMaximumSpeedResponse::GetMetadata() const { +::google::protobuf::Metadata SetReturnToLaunchAltitudeResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, file_level_metadata_action_2faction_2eproto[39]); } // =================================================================== -class GetReturnToLaunchAltitudeRequest::_Internal { - public: -}; - -GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) -} -GetReturnToLaunchAltitudeRequest::GetReturnToLaunchAltitudeRequest( - ::google::protobuf::Arena* arena, - const GetReturnToLaunchAltitudeRequest& from) - : ::google::protobuf::internal::ZeroFieldsBase(arena) { - GetReturnToLaunchAltitudeRequest* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeRequest) -} - - - - - - - - - -::google::protobuf::Metadata GetReturnToLaunchAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[40]); -} -// =================================================================== - -class GetReturnToLaunchAltitudeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const GetReturnToLaunchAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::mavsdk::rpc::action::ActionResult& GetReturnToLaunchAltitudeResponse::_Internal::action_result(const GetReturnToLaunchAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} -GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GetReturnToLaunchAltitudeResponse::GetReturnToLaunchAltitudeResponse( - ::google::protobuf::Arena* arena, - const GetReturnToLaunchAltitudeResponse& from) - : ::google::protobuf::Message(arena) { - GetReturnToLaunchAltitudeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - _impl_.relative_altitude_m_ = from._impl_.relative_altitude_m_; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) -} -inline PROTOBUF_NDEBUG_INLINE GetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void GetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, action_result_), - 0, - offsetof(Impl_, relative_altitude_m_) - - offsetof(Impl_, action_result_) + - sizeof(Impl_::relative_altitude_m_)); -} -GetReturnToLaunchAltitudeResponse::~GetReturnToLaunchAltitudeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void GetReturnToLaunchAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void GetReturnToLaunchAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_.relative_altitude_m_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* GetReturnToLaunchAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> GetReturnToLaunchAltitudeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_GetReturnToLaunchAltitudeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float relative_altitude_m = 2; - {::_pbi::TcParser::FastF32S1, - {21, 63, 0, PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_)}}, - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // float relative_altitude_m = 2; - {PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_), -1, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - -::uint8_t* GetReturnToLaunchAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - // float relative_altitude_m = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 2, this->_internal_relative_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - return target; -} - -::size_t GetReturnToLaunchAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - // float relative_altitude_m = 2; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData GetReturnToLaunchAltitudeResponse::_class_data_ = { - GetReturnToLaunchAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* GetReturnToLaunchAltitudeResponse::GetClassData() const { - return &_class_data_; -} - -void GetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void GetReturnToLaunchAltitudeResponse::CopyFrom(const GetReturnToLaunchAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.GetReturnToLaunchAltitudeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GetReturnToLaunchAltitudeResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* GetReturnToLaunchAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void GetReturnToLaunchAltitudeResponse::InternalSwap(GetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.relative_altitude_m_) - + sizeof(GetReturnToLaunchAltitudeResponse::_impl_.relative_altitude_m_) - - PROTOBUF_FIELD_OFFSET(GetReturnToLaunchAltitudeResponse, _impl_.action_result_)>( - reinterpret_cast(&_impl_.action_result_), - reinterpret_cast(&other->_impl_.action_result_)); -} - -::google::protobuf::Metadata GetReturnToLaunchAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[41]); -} -// =================================================================== - -class SetReturnToLaunchAltitudeRequest::_Internal { - public: -}; - -SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) -} -SetReturnToLaunchAltitudeRequest::SetReturnToLaunchAltitudeRequest( - ::google::protobuf::Arena* arena, const SetReturnToLaunchAltitudeRequest& from) - : SetReturnToLaunchAltitudeRequest(arena) { - MergeFrom(from); -} -inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeRequest::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetReturnToLaunchAltitudeRequest::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.relative_altitude_m_ = {}; -} -SetReturnToLaunchAltitudeRequest::~SetReturnToLaunchAltitudeRequest() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetReturnToLaunchAltitudeRequest::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.relative_altitude_m_ = 0; - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetReturnToLaunchAltitudeRequest::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> SetReturnToLaunchAltitudeRequest::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - &_SetReturnToLaunchAltitudeRequest_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // float relative_altitude_m = 1; - {::_pbi::TcParser::FastF32S1, - {13, 63, 0, PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // float relative_altitude_m = 1; - {PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeRequest, _impl_.relative_altitude_m_), 0, 0, - (0 | ::_fl::kFcSingular | ::_fl::kFloat)}, - }}, - // no aux_entries - {{ - }}, -}; - -::uint8_t* SetReturnToLaunchAltitudeRequest::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - // float relative_altitude_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFloatToArray( - 1, this->_internal_relative_altitude_m(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - return target; -} - -::size_t SetReturnToLaunchAltitudeRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // float relative_altitude_m = 1; - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = this->_internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - total_size += 5; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeRequest::_class_data_ = { - SetReturnToLaunchAltitudeRequest::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeRequest::GetClassData() const { - return &_class_data_; -} - -void SetReturnToLaunchAltitudeRequest::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(::uint32_t) == sizeof(float), - "Code assumes ::uint32_t and float are the same size."); - float tmp_relative_altitude_m = from._internal_relative_altitude_m(); - ::uint32_t raw_relative_altitude_m; - memcpy(&raw_relative_altitude_m, &tmp_relative_altitude_m, sizeof(tmp_relative_altitude_m)); - if (raw_relative_altitude_m != 0) { - _this->_internal_set_relative_altitude_m(from._internal_relative_altitude_m()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetReturnToLaunchAltitudeRequest::CopyFrom(const SetReturnToLaunchAltitudeRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeRequest::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetReturnToLaunchAltitudeRequest::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetReturnToLaunchAltitudeRequest::InternalSwap(SetReturnToLaunchAltitudeRequest* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.relative_altitude_m_, other->_impl_.relative_altitude_m_); -} - -::google::protobuf::Metadata SetReturnToLaunchAltitudeRequest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[42]); -} -// =================================================================== - -class SetReturnToLaunchAltitudeResponse::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_); - static const ::mavsdk::rpc::action::ActionResult& action_result(const SetReturnToLaunchAltitudeResponse* msg); - static void set_has_action_result(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::mavsdk::rpc::action::ActionResult& SetReturnToLaunchAltitudeResponse::_Internal::action_result(const SetReturnToLaunchAltitudeResponse* msg) { - return *msg->_impl_.action_result_; -} -SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse(::google::protobuf::Arena* arena) - : ::google::protobuf::Message(arena) { - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) -} -inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, - const Impl_& from) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -SetReturnToLaunchAltitudeResponse::SetReturnToLaunchAltitudeResponse( - ::google::protobuf::Arena* arena, - const SetReturnToLaunchAltitudeResponse& from) - : ::google::protobuf::Message(arena) { - SetReturnToLaunchAltitudeResponse* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.action_result_ = (cached_has_bits & 0x00000001u) - ? CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(arena, *from._impl_.action_result_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) -} -inline PROTOBUF_NDEBUG_INLINE SetReturnToLaunchAltitudeResponse::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena) - : _cached_size_{0} {} - -inline void SetReturnToLaunchAltitudeResponse::SharedCtor(::_pb::Arena* arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.action_result_ = {}; -} -SetReturnToLaunchAltitudeResponse::~SetReturnToLaunchAltitudeResponse() { - // @@protoc_insertion_point(destructor:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - SharedDtor(); -} -inline void SetReturnToLaunchAltitudeResponse::SharedDtor() { - ABSL_DCHECK(GetArena() == nullptr); - delete _impl_.action_result_; - _impl_.~Impl_(); -} - -PROTOBUF_NOINLINE void SetReturnToLaunchAltitudeResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ABSL_DCHECK(_impl_.action_result_ != nullptr); - _impl_.action_result_->Clear(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -const char* SetReturnToLaunchAltitudeResponse::_InternalParse( - const char* ptr, ::_pbi::ParseContext* ctx) { - ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); - return ptr; -} - - -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 1, 0, 2> SetReturnToLaunchAltitudeResponse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - &_SetReturnToLaunchAltitudeResponse_default_instance_._instance, - ::_pbi::TcParser::GenericFallback, // fallback - }, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_.action_result_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // .mavsdk.rpc.action.ActionResult action_result = 1; - {PROTOBUF_FIELD_OFFSET(SetReturnToLaunchAltitudeResponse, _impl_.action_result_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, {{ - {::_pbi::TcParser::GetTable<::mavsdk::rpc::action::ActionResult>()}, - }}, {{ - }}, -}; - -::uint8_t* SetReturnToLaunchAltitudeResponse::_InternalSerialize( - ::uint8_t* target, - ::google::protobuf::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - // .mavsdk.rpc.action.ActionResult action_result = 1; - if (cached_has_bits & 0x00000001u) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, _Internal::action_result(this), - _Internal::action_result(this).GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - return target; -} - -::size_t SetReturnToLaunchAltitudeResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // .mavsdk.rpc.action.ActionResult action_result = 1; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += - 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.action_result_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::google::protobuf::Message::ClassData SetReturnToLaunchAltitudeResponse::_class_data_ = { - SetReturnToLaunchAltitudeResponse::MergeImpl, - nullptr, // OnDemandRegisterArenaDtor -}; -const ::google::protobuf::Message::ClassData* SetReturnToLaunchAltitudeResponse::GetClassData() const { - return &_class_data_; -} - -void SetReturnToLaunchAltitudeResponse::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_internal_mutable_action_result()->::mavsdk::rpc::action::ActionResult::MergeFrom( - from._internal_action_result()); - } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); -} - -void SetReturnToLaunchAltitudeResponse::CopyFrom(const SetReturnToLaunchAltitudeResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:mavsdk.rpc.action.SetReturnToLaunchAltitudeResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SetReturnToLaunchAltitudeResponse::IsInitialized() const { - return true; -} - -::_pbi::CachedSize* SetReturnToLaunchAltitudeResponse::AccessCachedSize() const { - return &_impl_._cached_size_; -} -void SetReturnToLaunchAltitudeResponse::InternalSwap(SetReturnToLaunchAltitudeResponse* PROTOBUF_RESTRICT other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.action_result_, other->_impl_.action_result_); -} - -::google::protobuf::Metadata SetReturnToLaunchAltitudeResponse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[43]); -} -// =================================================================== - -class SetCurrentSpeedRequest::_Internal { +class SetCurrentSpeedRequest::_Internal { public: }; @@ -8492,7 +7682,7 @@ void SetCurrentSpeedRequest::InternalSwap(SetCurrentSpeedRequest* PROTOBUF_RESTR ::google::protobuf::Metadata SetCurrentSpeedRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[44]); + file_level_metadata_action_2faction_2eproto[40]); } // =================================================================== @@ -8699,7 +7889,7 @@ void SetCurrentSpeedResponse::InternalSwap(SetCurrentSpeedResponse* PROTOBUF_RES ::google::protobuf::Metadata SetCurrentSpeedResponse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[45]); + file_level_metadata_action_2faction_2eproto[41]); } // =================================================================== @@ -8915,7 +8105,7 @@ void ActionResult::InternalSwap(ActionResult* PROTOBUF_RESTRICT other) { ::google::protobuf::Metadata ActionResult::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_action_2faction_2eproto_getter, &descriptor_table_action_2faction_2eproto_once, - file_level_metadata_action_2faction_2eproto[46]); + file_level_metadata_action_2faction_2eproto[42]); } // @@protoc_insertion_point(namespace_scope) } // namespace action diff --git a/src/mavsdk_server/src/generated/action/action.pb.h b/src/mavsdk_server/src/generated/action/action.pb.h index b6815c707..019a6a3cb 100644 --- a/src/mavsdk_server/src/generated/action/action.pb.h +++ b/src/mavsdk_server/src/generated/action/action.pb.h @@ -88,12 +88,6 @@ extern DoOrbitRequestDefaultTypeInternal _DoOrbitRequest_default_instance_; class DoOrbitResponse; struct DoOrbitResponseDefaultTypeInternal; extern DoOrbitResponseDefaultTypeInternal _DoOrbitResponse_default_instance_; -class GetMaximumSpeedRequest; -struct GetMaximumSpeedRequestDefaultTypeInternal; -extern GetMaximumSpeedRequestDefaultTypeInternal _GetMaximumSpeedRequest_default_instance_; -class GetMaximumSpeedResponse; -struct GetMaximumSpeedResponseDefaultTypeInternal; -extern GetMaximumSpeedResponseDefaultTypeInternal _GetMaximumSpeedResponse_default_instance_; class GetReturnToLaunchAltitudeRequest; struct GetReturnToLaunchAltitudeRequestDefaultTypeInternal; extern GetReturnToLaunchAltitudeRequestDefaultTypeInternal _GetReturnToLaunchAltitudeRequest_default_instance_; @@ -154,12 +148,6 @@ extern SetCurrentSpeedRequestDefaultTypeInternal _SetCurrentSpeedRequest_default class SetCurrentSpeedResponse; struct SetCurrentSpeedResponseDefaultTypeInternal; extern SetCurrentSpeedResponseDefaultTypeInternal _SetCurrentSpeedResponse_default_instance_; -class SetMaximumSpeedRequest; -struct SetMaximumSpeedRequestDefaultTypeInternal; -extern SetMaximumSpeedRequestDefaultTypeInternal _SetMaximumSpeedRequest_default_instance_; -class SetMaximumSpeedResponse; -struct SetMaximumSpeedResponseDefaultTypeInternal; -extern SetMaximumSpeedResponseDefaultTypeInternal _SetMaximumSpeedResponse_default_instance_; class SetReturnToLaunchAltitudeRequest; struct SetReturnToLaunchAltitudeRequestDefaultTypeInternal; extern SetReturnToLaunchAltitudeRequestDefaultTypeInternal _SetReturnToLaunchAltitudeRequest_default_instance_; @@ -1215,7 +1203,7 @@ class SetReturnToLaunchAltitudeRequest final : &_SetReturnToLaunchAltitudeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 42; + 38; friend void swap(SetReturnToLaunchAltitudeRequest& a, SetReturnToLaunchAltitudeRequest& b) { a.Swap(&b); @@ -1331,181 +1319,6 @@ class SetReturnToLaunchAltitudeRequest final : friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class SetMaximumSpeedRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetMaximumSpeedRequest) */ { - public: - inline SetMaximumSpeedRequest() : SetMaximumSpeedRequest(nullptr) {} - ~SetMaximumSpeedRequest() override; - template - explicit PROTOBUF_CONSTEXPR SetMaximumSpeedRequest(::google::protobuf::internal::ConstantInitialized); - - inline SetMaximumSpeedRequest(const SetMaximumSpeedRequest& from) - : SetMaximumSpeedRequest(nullptr, from) {} - SetMaximumSpeedRequest(SetMaximumSpeedRequest&& from) noexcept - : SetMaximumSpeedRequest() { - *this = ::std::move(from); - } - - inline SetMaximumSpeedRequest& operator=(const SetMaximumSpeedRequest& from) { - CopyFrom(from); - return *this; - } - inline SetMaximumSpeedRequest& operator=(SetMaximumSpeedRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetMaximumSpeedRequest& default_instance() { - return *internal_default_instance(); - } - static inline const SetMaximumSpeedRequest* internal_default_instance() { - return reinterpret_cast( - &_SetMaximumSpeedRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 38; - - friend void swap(SetMaximumSpeedRequest& a, SetMaximumSpeedRequest& b) { - a.Swap(&b); - } - inline void Swap(SetMaximumSpeedRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetMaximumSpeedRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetMaximumSpeedRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetMaximumSpeedRequest& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetMaximumSpeedRequest& from) { - SetMaximumSpeedRequest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetMaximumSpeedRequest* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetMaximumSpeedRequest"; - } - protected: - explicit SetMaximumSpeedRequest(::google::protobuf::Arena* arena); - SetMaximumSpeedRequest(::google::protobuf::Arena* arena, const SetMaximumSpeedRequest& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSpeedFieldNumber = 1, - }; - // float speed = 1; - void clear_speed() ; - float speed() const; - void set_speed(float value); - - private: - float _internal_speed() const; - void _internal_set_speed(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetMaximumSpeedRequest) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 0, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - float speed_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - class SetCurrentSpeedRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedRequest) */ { public: @@ -1565,7 +1378,7 @@ class SetCurrentSpeedRequest final : &_SetCurrentSpeedRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 44; + 40; friend void swap(SetCurrentSpeedRequest& a, SetCurrentSpeedRequest& b) { a.Swap(&b); @@ -2953,7 +2766,7 @@ class GetReturnToLaunchAltitudeRequest final : &_GetReturnToLaunchAltitudeRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 36; friend void swap(GetReturnToLaunchAltitudeRequest& a, GetReturnToLaunchAltitudeRequest& b) { a.Swap(&b); @@ -3031,142 +2844,6 @@ class GetReturnToLaunchAltitudeRequest final : friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class GetMaximumSpeedRequest final : - public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetMaximumSpeedRequest) */ { - public: - inline GetMaximumSpeedRequest() : GetMaximumSpeedRequest(nullptr) {} - template - explicit PROTOBUF_CONSTEXPR GetMaximumSpeedRequest(::google::protobuf::internal::ConstantInitialized); - - inline GetMaximumSpeedRequest(const GetMaximumSpeedRequest& from) - : GetMaximumSpeedRequest(nullptr, from) {} - GetMaximumSpeedRequest(GetMaximumSpeedRequest&& from) noexcept - : GetMaximumSpeedRequest() { - *this = ::std::move(from); - } - - inline GetMaximumSpeedRequest& operator=(const GetMaximumSpeedRequest& from) { - CopyFrom(from); - return *this; - } - inline GetMaximumSpeedRequest& operator=(GetMaximumSpeedRequest&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetMaximumSpeedRequest& default_instance() { - return *internal_default_instance(); - } - static inline const GetMaximumSpeedRequest* internal_default_instance() { - return reinterpret_cast( - &_GetMaximumSpeedRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - friend void swap(GetMaximumSpeedRequest& a, GetMaximumSpeedRequest& b) { - a.Swap(&b); - } - inline void Swap(GetMaximumSpeedRequest* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetMaximumSpeedRequest* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetMaximumSpeedRequest* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const GetMaximumSpeedRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } - using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const GetMaximumSpeedRequest& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } - public: - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetMaximumSpeedRequest"; - } - protected: - explicit GetMaximumSpeedRequest(::google::protobuf::Arena* arena); - GetMaximumSpeedRequest(::google::protobuf::Arena* arena, const GetMaximumSpeedRequest& from); - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetMaximumSpeedRequest) - private: - class _Internal; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - PROTOBUF_TSAN_DECLARE_MEMBER - }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - class DoOrbitRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitRequest) */ { public: @@ -3869,7 +3546,7 @@ class ActionResult final : &_ActionResult_default_instance_); } static constexpr int kIndexInFileMessages = - 46; + 42; friend void swap(ActionResult& a, ActionResult& b) { a.Swap(&b); @@ -5181,7 +4858,7 @@ class SetReturnToLaunchAltitudeResponse final : &_SetReturnToLaunchAltitudeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 43; + 39; friend void swap(SetReturnToLaunchAltitudeResponse& a, SetReturnToLaunchAltitudeResponse& b) { a.Swap(&b); @@ -5303,187 +4980,6 @@ class SetReturnToLaunchAltitudeResponse final : friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class SetMaximumSpeedResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetMaximumSpeedResponse) */ { - public: - inline SetMaximumSpeedResponse() : SetMaximumSpeedResponse(nullptr) {} - ~SetMaximumSpeedResponse() override; - template - explicit PROTOBUF_CONSTEXPR SetMaximumSpeedResponse(::google::protobuf::internal::ConstantInitialized); - - inline SetMaximumSpeedResponse(const SetMaximumSpeedResponse& from) - : SetMaximumSpeedResponse(nullptr, from) {} - SetMaximumSpeedResponse(SetMaximumSpeedResponse&& from) noexcept - : SetMaximumSpeedResponse() { - *this = ::std::move(from); - } - - inline SetMaximumSpeedResponse& operator=(const SetMaximumSpeedResponse& from) { - CopyFrom(from); - return *this; - } - inline SetMaximumSpeedResponse& operator=(SetMaximumSpeedResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SetMaximumSpeedResponse& default_instance() { - return *internal_default_instance(); - } - static inline const SetMaximumSpeedResponse* internal_default_instance() { - return reinterpret_cast( - &_SetMaximumSpeedResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 39; - - friend void swap(SetMaximumSpeedResponse& a, SetMaximumSpeedResponse& b) { - a.Swap(&b); - } - inline void Swap(SetMaximumSpeedResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SetMaximumSpeedResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SetMaximumSpeedResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const SetMaximumSpeedResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const SetMaximumSpeedResponse& from) { - SetMaximumSpeedResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(SetMaximumSpeedResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.SetMaximumSpeedResponse"; - } - protected: - explicit SetMaximumSpeedResponse(::google::protobuf::Arena* arena); - SetMaximumSpeedResponse(::google::protobuf::Arena* arena, const SetMaximumSpeedResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.SetMaximumSpeedResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 0, 1, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - class SetCurrentSpeedResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.SetCurrentSpeedResponse) */ { public: @@ -5543,7 +5039,7 @@ class SetCurrentSpeedResponse final : &_SetCurrentSpeedResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 45; + 41; friend void swap(SetCurrentSpeedResponse& a, SetCurrentSpeedResponse& b) { a.Swap(&b); @@ -7184,7 +6680,7 @@ class GetReturnToLaunchAltitudeResponse final : &_GetReturnToLaunchAltitudeResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 37; friend void swap(GetReturnToLaunchAltitudeResponse& a, GetReturnToLaunchAltitudeResponse& b) { a.Swap(&b); @@ -7318,199 +6814,6 @@ class GetReturnToLaunchAltitudeResponse final : friend struct ::TableStruct_action_2faction_2eproto; };// ------------------------------------------------------------------- -class GetMaximumSpeedResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.GetMaximumSpeedResponse) */ { - public: - inline GetMaximumSpeedResponse() : GetMaximumSpeedResponse(nullptr) {} - ~GetMaximumSpeedResponse() override; - template - explicit PROTOBUF_CONSTEXPR GetMaximumSpeedResponse(::google::protobuf::internal::ConstantInitialized); - - inline GetMaximumSpeedResponse(const GetMaximumSpeedResponse& from) - : GetMaximumSpeedResponse(nullptr, from) {} - GetMaximumSpeedResponse(GetMaximumSpeedResponse&& from) noexcept - : GetMaximumSpeedResponse() { - *this = ::std::move(from); - } - - inline GetMaximumSpeedResponse& operator=(const GetMaximumSpeedResponse& from) { - CopyFrom(from); - return *this; - } - inline GetMaximumSpeedResponse& operator=(GetMaximumSpeedResponse&& from) noexcept { - if (this == &from) return *this; - if (GetArena() == from.GetArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance); - } - inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - static const ::google::protobuf::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::google::protobuf::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::google::protobuf::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const GetMaximumSpeedResponse& default_instance() { - return *internal_default_instance(); - } - static inline const GetMaximumSpeedResponse* internal_default_instance() { - return reinterpret_cast( - &_GetMaximumSpeedResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - friend void swap(GetMaximumSpeedResponse& a, GetMaximumSpeedResponse& b) { - a.Swap(&b); - } - inline void Swap(GetMaximumSpeedResponse* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() != nullptr && - GetArena() == other->GetArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetArena() == other->GetArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GetMaximumSpeedResponse* other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GetMaximumSpeedResponse* New(::google::protobuf::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::google::protobuf::Message::CopyFrom; - void CopyFrom(const GetMaximumSpeedResponse& from); - using ::google::protobuf::Message::MergeFrom; - void MergeFrom( const GetMaximumSpeedResponse& from) { - GetMaximumSpeedResponse::MergeImpl(*this, from); - } - private: - static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - ::size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final; - ::uint8_t* _InternalSerialize( - ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - ::google::protobuf::internal::CachedSize* AccessCachedSize() const final; - void SharedCtor(::google::protobuf::Arena* arena); - void SharedDtor(); - void InternalSwap(GetMaximumSpeedResponse* other); - - private: - friend class ::google::protobuf::internal::AnyMetadata; - static ::absl::string_view FullMessageName() { - return "mavsdk.rpc.action.GetMaximumSpeedResponse"; - } - protected: - explicit GetMaximumSpeedResponse(::google::protobuf::Arena* arena); - GetMaximumSpeedResponse(::google::protobuf::Arena* arena, const GetMaximumSpeedResponse& from); - public: - - static const ClassData _class_data_; - const ::google::protobuf::Message::ClassData*GetClassData() const final; - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionResultFieldNumber = 1, - kSpeedFieldNumber = 2, - }; - // .mavsdk.rpc.action.ActionResult action_result = 1; - bool has_action_result() const; - void clear_action_result() ; - const ::mavsdk::rpc::action::ActionResult& action_result() const; - PROTOBUF_NODISCARD ::mavsdk::rpc::action::ActionResult* release_action_result(); - ::mavsdk::rpc::action::ActionResult* mutable_action_result(); - void set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - void unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value); - ::mavsdk::rpc::action::ActionResult* unsafe_arena_release_action_result(); - - private: - const ::mavsdk::rpc::action::ActionResult& _internal_action_result() const; - ::mavsdk::rpc::action::ActionResult* _internal_mutable_action_result(); - - public: - // float speed = 2; - void clear_speed() ; - float speed() const; - void set_speed(float value); - - private: - float _internal_speed() const; - void _internal_set_speed(float value); - - public: - // @@protoc_insertion_point(class_scope:mavsdk.rpc.action.GetMaximumSpeedResponse) - private: - class _Internal; - - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable< - 1, 2, 1, - 0, 2> - _table_; - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - - inline explicit constexpr Impl_( - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena); - inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* arena, const Impl_& from); - ::google::protobuf::internal::HasBits<1> _has_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::mavsdk::rpc::action::ActionResult* action_result_; - float speed_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_action_2faction_2eproto; -};// ------------------------------------------------------------------- - class DoOrbitResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mavsdk.rpc.action.DoOrbitResponse) */ { public: @@ -10443,260 +9746,6 @@ inline void SetTakeoffAltitudeResponse::set_allocated_action_result(::mavsdk::rp // ------------------------------------------------------------------- -// GetMaximumSpeedRequest - -// ------------------------------------------------------------------- - -// GetMaximumSpeedResponse - -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool GetMaximumSpeedResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void GetMaximumSpeedResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& GetMaximumSpeedResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& GetMaximumSpeedResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) - return _internal_action_result(); -} -inline void GetMaximumSpeedResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* GetMaximumSpeedResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) - return _msg; -} -inline void GetMaximumSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.GetMaximumSpeedResponse.action_result) -} - -// float speed = 2; -inline void GetMaximumSpeedResponse::clear_speed() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.speed_ = 0; -} -inline float GetMaximumSpeedResponse::speed() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.GetMaximumSpeedResponse.speed) - return _internal_speed(); -} -inline void GetMaximumSpeedResponse::set_speed(float value) { - _internal_set_speed(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.GetMaximumSpeedResponse.speed) -} -inline float GetMaximumSpeedResponse::_internal_speed() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.speed_; -} -inline void GetMaximumSpeedResponse::_internal_set_speed(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.speed_ = value; -} - -// ------------------------------------------------------------------- - -// SetMaximumSpeedRequest - -// float speed = 1; -inline void SetMaximumSpeedRequest::clear_speed() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_.speed_ = 0; -} -inline float SetMaximumSpeedRequest::speed() const { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetMaximumSpeedRequest.speed) - return _internal_speed(); -} -inline void SetMaximumSpeedRequest::set_speed(float value) { - _internal_set_speed(value); - // @@protoc_insertion_point(field_set:mavsdk.rpc.action.SetMaximumSpeedRequest.speed) -} -inline float SetMaximumSpeedRequest::_internal_speed() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - return _impl_.speed_; -} -inline void SetMaximumSpeedRequest::_internal_set_speed(float value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - ; - _impl_.speed_ = value; -} - -// ------------------------------------------------------------------- - -// SetMaximumSpeedResponse - -// .mavsdk.rpc.action.ActionResult action_result = 1; -inline bool SetMaximumSpeedResponse::has_action_result() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.action_result_ != nullptr); - return value; -} -inline void SetMaximumSpeedResponse::clear_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (_impl_.action_result_ != nullptr) _impl_.action_result_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline const ::mavsdk::rpc::action::ActionResult& SetMaximumSpeedResponse::_internal_action_result() const { - PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race); - const ::mavsdk::rpc::action::ActionResult* p = _impl_.action_result_; - return p != nullptr ? *p : reinterpret_cast(::mavsdk::rpc::action::_ActionResult_default_instance_); -} -inline const ::mavsdk::rpc::action::ActionResult& SetMaximumSpeedResponse::action_result() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) - return _internal_action_result(); -} -inline void SetMaximumSpeedResponse::unsafe_arena_set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.action_result_); - } - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) -} -inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* released = _impl_.action_result_; - _impl_.action_result_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return released; -} -inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::unsafe_arena_release_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - // @@protoc_insertion_point(field_release:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) - - _impl_._has_bits_[0] &= ~0x00000001u; - ::mavsdk::rpc::action::ActionResult* temp = _impl_.action_result_; - _impl_.action_result_ = nullptr; - return temp; -} -inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::_internal_mutable_action_result() { - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.action_result_ == nullptr) { - auto* p = CreateMaybeMessage<::mavsdk::rpc::action::ActionResult>(GetArena()); - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(p); - } - return _impl_.action_result_; -} -inline ::mavsdk::rpc::action::ActionResult* SetMaximumSpeedResponse::mutable_action_result() ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::mavsdk::rpc::action::ActionResult* _msg = _internal_mutable_action_result(); - // @@protoc_insertion_point(field_mutable:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) - return _msg; -} -inline void SetMaximumSpeedResponse::set_allocated_action_result(::mavsdk::rpc::action::ActionResult* value) { - ::google::protobuf::Arena* message_arena = GetArena(); - PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race); - if (message_arena == nullptr) { - delete reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(_impl_.action_result_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - - _impl_.action_result_ = reinterpret_cast<::mavsdk::rpc::action::ActionResult*>(value); - // @@protoc_insertion_point(field_set_allocated:mavsdk.rpc.action.SetMaximumSpeedResponse.action_result) -} - -// ------------------------------------------------------------------- - // GetReturnToLaunchAltitudeRequest // ------------------------------------------------------------------- diff --git a/src/mavsdk_server/src/plugins/action/action_service_impl.h b/src/mavsdk_server/src/plugins/action/action_service_impl.h index f37369cca..64add2aa7 100644 --- a/src/mavsdk_server/src/plugins/action/action_service_impl.h +++ b/src/mavsdk_server/src/plugins/action/action_service_impl.h @@ -610,59 +610,6 @@ class ActionServiceImpl final : public rpc::action::ActionService::Service { return grpc::Status::OK; } - grpc::Status GetMaximumSpeed( - grpc::ServerContext* /* context */, - const rpc::action::GetMaximumSpeedRequest* /* request */, - rpc::action::GetMaximumSpeedResponse* response) override - { - if (_lazy_plugin.maybe_plugin() == nullptr) { - if (response != nullptr) { - auto result = mavsdk::Action::Result::NoSystem; - fillResponseWithResult(response, result); - } - - return grpc::Status::OK; - } - - auto result = _lazy_plugin.maybe_plugin()->get_maximum_speed(); - - if (response != nullptr) { - fillResponseWithResult(response, result.first); - - response->set_speed(result.second); - } - - return grpc::Status::OK; - } - - grpc::Status SetMaximumSpeed( - grpc::ServerContext* /* context */, - const rpc::action::SetMaximumSpeedRequest* request, - rpc::action::SetMaximumSpeedResponse* response) override - { - if (_lazy_plugin.maybe_plugin() == nullptr) { - if (response != nullptr) { - auto result = mavsdk::Action::Result::NoSystem; - fillResponseWithResult(response, result); - } - - return grpc::Status::OK; - } - - if (request == nullptr) { - LogWarn() << "SetMaximumSpeed sent with a null request! Ignoring..."; - return grpc::Status::OK; - } - - auto result = _lazy_plugin.maybe_plugin()->set_maximum_speed(request->speed()); - - if (response != nullptr) { - fillResponseWithResult(response, result); - } - - return grpc::Status::OK; - } - grpc::Status GetReturnToLaunchAltitude( grpc::ServerContext* /* context */, const rpc::action::GetReturnToLaunchAltitudeRequest* /* request */, diff --git a/src/mavsdk_server/test/action_service_impl_test.cpp b/src/mavsdk_server/test/action_service_impl_test.cpp index 90033b234..dd9860358 100644 --- a/src/mavsdk_server/test/action_service_impl_test.cpp +++ b/src/mavsdk_server/test/action_service_impl_test.cpp @@ -20,7 +20,6 @@ using ActionServiceImpl = mavsdk::mavsdk_server::ActionServiceImpl generateResults(); mavsdk::Action::Result armAndGetTranslatedResult(mavsdk::Action::Result arm_result); @@ -415,93 +414,6 @@ setTakeoffAltitudeAndGetTranslatedResult(const mavsdk::Action::Result action_res return translateFromRpcResult(response.action_result().result()); } -TEST_F(ActionServiceImplTest, getMaxSpeedDoesNotCrashWithNullResponse) -{ - MockLazyPlugin lazy_plugin; - MockAction action; - ON_CALL(lazy_plugin, maybe_plugin()).WillByDefault(Return(&action)); - ActionServiceImpl actionService(lazy_plugin); - - actionService.GetMaximumSpeed(nullptr, nullptr, nullptr); -} - -TEST_F(ActionServiceImplTest, getMaxSpeedCallsGetter) -{ - MockLazyPlugin lazy_plugin; - MockAction action; - ON_CALL(lazy_plugin, maybe_plugin()).WillByDefault(Return(&action)); - ActionServiceImpl actionService(lazy_plugin); - EXPECT_CALL(action, get_maximum_speed()).Times(1); - mavsdk::rpc::action::GetMaximumSpeedResponse response; - - actionService.GetMaximumSpeed(nullptr, nullptr, &response); -} - -TEST_P(ActionServiceImplTest, getMaxSpeedGetsRightValue) -{ - MockLazyPlugin lazy_plugin; - MockAction action; - ON_CALL(lazy_plugin, maybe_plugin()).WillByDefault(Return(&action)); - ActionServiceImpl actionService(lazy_plugin); - const auto expected_pair = std::make_pair<>(GetParam(), ARBITRARY_SPEED); - ON_CALL(action, get_maximum_speed()).WillByDefault(Return(expected_pair)); - mavsdk::rpc::action::GetMaximumSpeedResponse response; - - actionService.GetMaximumSpeed(nullptr, nullptr, &response); - - EXPECT_EQ(GetParam(), translateFromRpcResult(response.action_result().result())); - EXPECT_EQ(expected_pair.second, response.speed()); -} - -TEST_F(ActionServiceImplTest, setMaxSpeedDoesNotCrashWithNullRequest) -{ - MockLazyPlugin lazy_plugin; - MockAction action; - ON_CALL(lazy_plugin, maybe_plugin()).WillByDefault(Return(&action)); - ActionServiceImpl actionService(lazy_plugin); - mavsdk::rpc::action::SetMaximumSpeedResponse response; - - actionService.SetMaximumSpeed(nullptr, nullptr, &response); -} - -TEST_F(ActionServiceImplTest, setMaxSpeedDoesNotCrashWithNullResponse) -{ - MockLazyPlugin lazy_plugin; - MockAction action; - ON_CALL(lazy_plugin, maybe_plugin()).WillByDefault(Return(&action)); - ActionServiceImpl actionService(lazy_plugin); - mavsdk::rpc::action::SetMaximumSpeedRequest request; - request.set_speed(ARBITRARY_SPEED); - - actionService.SetMaximumSpeed(nullptr, &request, nullptr); -} - -TEST_F(ActionServiceImplTest, setMaxSpeedCallsSetter) -{ - MockLazyPlugin lazy_plugin; - MockAction action; - ON_CALL(lazy_plugin, maybe_plugin()).WillByDefault(Return(&action)); - ActionServiceImpl actionService(lazy_plugin); - EXPECT_CALL(action, set_maximum_speed(_)).Times(1); - mavsdk::rpc::action::SetMaximumSpeedRequest request; - - actionService.SetMaximumSpeed(nullptr, &request, nullptr); -} - -TEST_F(ActionServiceImplTest, setMaxSpeedSetsRightValue) -{ - MockLazyPlugin lazy_plugin; - MockAction action; - ON_CALL(lazy_plugin, maybe_plugin()).WillByDefault(Return(&action)); - ActionServiceImpl actionService(lazy_plugin); - const auto expected_speed = ARBITRARY_SPEED; - EXPECT_CALL(action, set_maximum_speed(expected_speed)).Times(1); - mavsdk::rpc::action::SetMaximumSpeedRequest request; - request.set_speed(expected_speed); - - actionService.SetMaximumSpeed(nullptr, &request, nullptr); -} - TEST_P(ActionServiceImplTest, getReturnToLaunchAltitudeResultIsTranslatedCorrectly) { const auto rpc_result = getReturnToLaunchAltitudeAndGetTranslatedResult(GetParam());