mirror of https://github.com/ArduPilot/ardupilot
Copter: remove redundant takeoff_stop from flowhold
This commit is contained in:
parent
a03ddc6798
commit
8ff8364252
|
@ -18,9 +18,6 @@ bool Copter::ModeAltHold::init(bool ignore_checks)
|
||||||
pos_control->set_desired_velocity_z(inertial_nav.get_velocity_z());
|
pos_control->set_desired_velocity_z(inertial_nav.get_velocity_z());
|
||||||
}
|
}
|
||||||
|
|
||||||
// stop takeoff if running
|
|
||||||
takeoff_stop();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,9 +104,6 @@ bool Copter::ModeFlowHold::init(bool ignore_checks)
|
||||||
flow_pi_xy.reset_I();
|
flow_pi_xy.reset_I();
|
||||||
limited = false;
|
limited = false;
|
||||||
|
|
||||||
// stop takeoff if running
|
|
||||||
copter.takeoff_stop();
|
|
||||||
|
|
||||||
flow_pi_xy.set_dt(1.0/copter.scheduler.get_loop_rate_hz());
|
flow_pi_xy.set_dt(1.0/copter.scheduler.get_loop_rate_hz());
|
||||||
|
|
||||||
// start with INS height
|
// start with INS height
|
||||||
|
|
Loading…
Reference in New Issue