From 56fddf472699e668e6fb83fdf1224a5d451cb564 Mon Sep 17 00:00:00 2001 From: LaurentWang Date: Tue, 20 Apr 2021 17:52:22 +0800 Subject: [PATCH] [fix] fixed bug: in mavros controller init() without checking set_mode status. --- .../src/px4_mavros_controller.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/algorithms/src/Navigation/px4_mavros_controller/src/px4_mavros_controller.cpp b/algorithms/src/Navigation/px4_mavros_controller/src/px4_mavros_controller.cpp index 6c5e5b3b..73ad40c0 100644 --- a/algorithms/src/Navigation/px4_mavros_controller/src/px4_mavros_controller.cpp +++ b/algorithms/src/Navigation/px4_mavros_controller/src/px4_mavros_controller.cpp @@ -229,7 +229,7 @@ class PX4MavrosController while(ros::ok()&&!set_mode_client.exists()) { LOG(INFO)<<"Waiting for mavros_set_mode service."<