From 8a94168414db86501ad6b82db7040017d49015ac Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Wed, 10 May 2023 16:23:01 +0200 Subject: [PATCH] try to build --- src/px4_connection/src/heartbeat.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/px4_connection/src/heartbeat.cpp b/src/px4_connection/src/heartbeat.cpp index 3f1c5119..75d8ed96 100644 --- a/src/px4_connection/src/heartbeat.cpp +++ b/src/px4_connection/src/heartbeat.cpp @@ -69,14 +69,14 @@ private: const std::shared_ptr request, const std::shared_ptr response) { - if (request->control < 0 || request->control > CONTROL_POSITION_POS) - { - response->status = 1; - } else { - this->control_mode = request->control - RCLCPP_INFO(this->get_logger(), "set control mode to %d", this->control_mode) - response->status = 0; - } + // if (request->control < 0 || request->control > CONTROL_POSITION_POS) + // { + // response->status = 1; + // } else { + // this->control_mode = request->control + // RCLCPP_INFO(this->get_logger(), "set control mode to %d", this->control_mode) + // response->status = 0; + // } } };