Skip to content

Commit

Permalink
Rally Points RTL: no not consider rally points for RTL_TYPE=2
Browse files Browse the repository at this point in the history
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
  • Loading branch information
sfuhrer committed Nov 21, 2019
1 parent 7279583 commit 239608c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/modules/navigator/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ RTL::find_RTL_destination()
}
}

// do not consider rally point if RTL_TYPE, so exit function and use either home or mission landing
if (rtl_type() == RTL_MISSION) { return;}

// compare to safe landing positions
mission_safe_point_s closest_safe_point {} ;
mission_stats_entry_s stats;
Expand Down
5 changes: 2 additions & 3 deletions src/modules/navigator/rtl_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,11 @@ PARAM_DEFINE_FLOAT(RTL_MIN_DIST, 5.0f);
/**
* Return type
*
* Fly straight to the return location or planned mission landing and land there or
* use the planned mission to get to those points.
* Return mode destination and flight path (home location, rally point, mission landing pattern, reverse mission)
*
* @value 0 Return to closest safe point (home or rally point) via direct path.
* @value 1 Return to closest safe point other than home (mission landing pattern or rally point), via direct path. If no mission landing or rally points are defined return home via direct path.
* @value 2 Same as above (2nd option), but return via mission path (for return to mission landing), via the reverse mission path (home) or via direct path (rally point).
* @value 2 Return to a planned mission landing, if available, using the mission path, else return to home via the reverse mission path. Do not consider rally points.
* @value 3 Return via direct path to closest destination: home, start of mission landing pattern or safe point. If the destination is a mission landing pattern, follow the pattern to land.
* @group Return Mode
*/
Expand Down

0 comments on commit 239608c

Please sign in to comment.