From f3c23d1629dfbd306f87503d58a5f8474c4b31c6 Mon Sep 17 00:00:00 2001 From: murata Date: Sun, 17 Jul 2022 05:16:06 +0900 Subject: [PATCH] Copter: Append WHITE SPACE to the else statement --- ArduCopter/mode_rtl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduCopter/mode_rtl.cpp b/ArduCopter/mode_rtl.cpp index e0fdebce10..fa1f2be64f 100644 --- a/ArduCopter/mode_rtl.cpp +++ b/ArduCopter/mode_rtl.cpp @@ -79,7 +79,7 @@ void ModeRTL::run(bool disarm_on_land) case SubMode::LOITER_AT_HOME: if (rtl_path.land || copter.failsafe.radio) { land_start(); - }else{ + } else { descent_start(); } break; @@ -190,7 +190,7 @@ void ModeRTL::climb_return_run() if (auto_yaw.mode() == AUTO_YAW_HOLD) { // roll & pitch from waypoint controller, yaw rate from pilot attitude_control->input_thrust_vector_rate_heading(wp_nav->get_thrust_vector(), target_yaw_rate); - }else{ + } else { // roll, pitch from waypoint controller, yaw heading from auto_heading() attitude_control->input_thrust_vector_heading(wp_nav->get_thrust_vector(), auto_yaw.yaw()); } @@ -248,7 +248,7 @@ void ModeRTL::loiterathome_run() if (auto_yaw.mode() == AUTO_YAW_HOLD) { // roll & pitch from waypoint controller, yaw rate from pilot attitude_control->input_thrust_vector_rate_heading(wp_nav->get_thrust_vector(), target_yaw_rate); - }else{ + } else { // roll, pitch from waypoint controller, yaw heading from auto_heading() attitude_control->input_thrust_vector_heading(wp_nav->get_thrust_vector(), auto_yaw.yaw()); }