mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
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:
parent
e503df48ff
commit
823d09b212
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user