mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Copter: Append WHITE SPACE to the else statement
This commit is contained in:
parent
d593727205
commit
f3c23d1629
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user