navigator: reject mission if the first waypoint is too far from home

This commit is contained in:
Anton Babushkin
2014-07-07 15:18:54 +02:00
parent 29bf1fe6fa
commit a29f7cad39
3 changed files with 89 additions and 3 deletions
+12 -1
View File
@@ -58,7 +58,6 @@
*/
PARAM_DEFINE_FLOAT(MIS_TAKEOFF_ALT, 10.0f);
/**
* Enable onboard mission
*
@@ -67,3 +66,15 @@ PARAM_DEFINE_FLOAT(MIS_TAKEOFF_ALT, 10.0f);
* @group Mission
*/
PARAM_DEFINE_INT32(MIS_ONBOARD_EN, 0);
/**
* Maximal horizontal distance from home to first waypoint
*
* Failsafe check to prevent running mission stored from previous flight on new place.
* Value < 0 means that check disabled.
*
* @min -1
* @max 200
* @group Mission
*/
PARAM_DEFINE_FLOAT(MIS_DIST_1WP, 50);