Copter: use velocity based set_loiter_target

This commit is contained in:
Randy Mackay 2013-03-27 14:10:35 +09:00
parent 8ec7fd1c9c
commit a65960a009

View File

@ -125,7 +125,7 @@ static bool set_nav_mode(uint8_t new_nav_mode)
case NAV_LOITER:
// set target to current position
wp_nav.set_loiter_target(inertial_nav.get_position());
wp_nav.set_loiter_target(inertial_nav.get_position(), inertial_nav.get_velocity());
nav_initialised = true;
break;