diff --git a/ArduCopter/mode.h b/ArduCopter/mode.h index fd9ccf41d2..131df34a32 100644 --- a/ArduCopter/mode.h +++ b/ArduCopter/mode.h @@ -351,7 +351,6 @@ public: bool loiter_start(); void rtl_start(); void takeoff_start(const Location& dest_loc); - void wp_start(const Vector3f& destination, bool terrain_alt); void wp_start(const Location& dest_loc); void land_start(); void land_start(const Vector3f& destination); diff --git a/ArduCopter/mode_auto.cpp b/ArduCopter/mode_auto.cpp index 2b4aa70318..44c0a2345f 100644 --- a/ArduCopter/mode_auto.cpp +++ b/ArduCopter/mode_auto.cpp @@ -188,21 +188,6 @@ void ModeAuto::takeoff_start(const Location& dest_loc) auto_takeoff_set_start_alt(); } -// auto_wp_start - initialises waypoint controller to implement flying to a particular destination -void ModeAuto::wp_start(const Vector3f& destination, bool terrain_alt) -{ - _mode = Auto_WP; - - // initialise wpnav (no need to check return status because terrain data is not used) - wp_nav->set_wp_destination(destination, terrain_alt); - - // initialise yaw - // To-Do: reset the yaw only when the previous navigation command is not a WP. this would allow removing the special check for ROI - if (auto_yaw.mode() != AUTO_YAW_ROI) { - auto_yaw.set_mode_to_default(false); - } -} - // auto_wp_start - initialises waypoint controller to implement flying to a particular destination void ModeAuto::wp_start(const Location& dest_loc) {