mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 16:13:33 +08:00
Remove run-once procedure on check_dist_1wp
This commit is contained in:
@@ -335,10 +335,6 @@ bool MissionFeasibilityChecker::checkFixedWingLanding(dm_item_t dm_current, size
|
|||||||
bool
|
bool
|
||||||
MissionFeasibilityChecker::check_dist_1wp(dm_item_t dm_current, size_t nMissionItems, double curr_lat, double curr_lon, float dist_first_wp, bool &warning_issued)
|
MissionFeasibilityChecker::check_dist_1wp(dm_item_t dm_current, size_t nMissionItems, double curr_lat, double curr_lon, float dist_first_wp, bool &warning_issued)
|
||||||
{
|
{
|
||||||
if (_dist_1wp_ok) {
|
|
||||||
/* always return true after at least one successful check */
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* check if first waypoint is not too far from home */
|
/* check if first waypoint is not too far from home */
|
||||||
if (dist_first_wp > 0.0f) {
|
if (dist_first_wp > 0.0f) {
|
||||||
|
|||||||
Reference in New Issue
Block a user