mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Copter: use velocity based set_loiter_target
This commit is contained in:
parent
8ec7fd1c9c
commit
a65960a009
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user