Copter: control_loiter initialises alt target

This commit is contained in:
Randy Mackay 2014-01-24 16:23:56 +09:00 committed by Andrew Tridgell
parent 6ba91369ff
commit eec62cb16a

View File

@ -10,6 +10,8 @@ static bool loiter_init(bool ignore_checks)
if (GPS_ok() || ignore_checks) {
// set target to current position
wp_nav.init_loiter_target();
// initialise altitude target to stopping point
pos_control.set_target_to_stopping_point_z();
return true;
}else{
return false;