mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 06:31:37 +08:00
navigator: check distances between waypoints
Instead of just checking whether the first waypoint is too far away from home it makes sense to also check between waypoints. This can prevent - flyaways due to user errors, or - catch the corner case where a takeoff waypoint is added to a mission and therefore the first waypoint is not too far away, however, the subsequent waypoints are still too far away.
This commit is contained in:
@@ -99,6 +99,22 @@ PARAM_DEFINE_INT32(MIS_ONBOARD_EN, 1);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MIS_DIST_1WP, 900);
|
||||
|
||||
/**
|
||||
* Maximal horizontal distance between waypoint
|
||||
*
|
||||
* Failsafe check to prevent running missions which are way too big.
|
||||
* Set a value of zero or less to disable. The mission will not be started if any distance between
|
||||
* two subsequent waypoints is greater than MIS_DIST_WPS.
|
||||
*
|
||||
* @unit m
|
||||
* @min 0
|
||||
* @max 10000
|
||||
* @decimal 1
|
||||
* @increment 100
|
||||
* @group Mission
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MIS_DIST_WPS, 900);
|
||||
|
||||
/**
|
||||
* Altitude setpoint mode
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user