mirror of https://github.com/ArduPilot/ardupilot
Copter: remove mode from guided_set_dest
This duplicate check stopped us from reusing guided guided_set_destination as part of Auto's nav_guided command
This commit is contained in:
parent
f4c9d58051
commit
af4490a3d5
|
@ -37,14 +37,12 @@ static bool guided_init(bool ignore_checks)
|
|||
// guided_set_destination - sets guided mode's target destination
|
||||
static void guided_set_destination(const Vector3f& destination)
|
||||
{
|
||||
if (control_mode == GUIDED) {
|
||||
wp_nav.set_wp_destination(destination);
|
||||
if (!guided_pilot_yaw_override_yaw) {
|
||||
// get default yaw mode
|
||||
set_auto_yaw_mode(get_default_auto_yaw_mode(false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// guided_run - runs the guided controller
|
||||
// should be called at 100hz or more
|
||||
|
|
Loading…
Reference in New Issue