Copter: Fix confusing indentation

Commit d94663d5 introducted a minor whitespace issue which made the
indentation of the nested if statements slightly confusing. We may as
well clean it up sooner rather than later :-)
This commit is contained in:
Sam Bristow 2018-10-15 16:28:33 +13:00 committed by Peter Barker
parent e503df48ff
commit 823d09b212

View File

@ -757,7 +757,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_long_packet(const mavlink_command_
if (packet.param2 > 0.0f) {
if (packet.param1 > 2.9f) { // 3 = speed down
copter.wp_nav->set_speed_z(packet.param2 * 100.0f, copter.wp_nav->get_speed_up());
} else if (packet.param1 > 1.9f) { // 2 = speed up
} else if (packet.param1 > 1.9f) { // 2 = speed up
copter.wp_nav->set_speed_z(copter.wp_nav->get_speed_down(), packet.param2 * 100.0f);
} else {
copter.wp_nav->set_speed_xy(packet.param2 * 100.0f);