Copter: althold remove redundant z-axis init

This commit is contained in:
Leonard Hall 2018-03-17 12:54:40 +09:00 committed by Randy Mackay
parent 8ff8364252
commit a3a1601837
1 changed files with 0 additions and 4 deletions

View File

@ -8,10 +8,6 @@
// althold_init - initialise althold controller
bool Copter::ModeAltHold::init(bool ignore_checks)
{
// initialize vertical speeds and leash lengths
pos_control->set_speed_z(-get_pilot_speed_dn(), g.pilot_speed_up);
pos_control->set_accel_z(g.pilot_accel_z);
// initialise position and desired velocity
if (!pos_control->is_active_z()) {
pos_control->set_alt_target_to_current_alt();