Copter: fixed vertical speed init for ALT_HOLD mode

This commit is contained in:
Holger Steinhaus 2014-03-13 18:29:38 +01:00 committed by Randy Mackay
parent d92e7a99a2
commit 39df609235
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@ static bool althold_init(bool ignore_checks)
{
// initialise altitude target to stopping point
pos_control.set_target_to_stopping_point_z();
// initialize vertical speeds and leash lengths
pos_control.set_speed_z(-g.pilot_velocity_z_max, g.pilot_velocity_z_max);
return true;
}