mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 03:13:33 +08:00
Failure detector - Disable flight termination by default. Modify FD_FAIL parameters description
This commit is contained in:
@@ -113,7 +113,7 @@ PARAM_DEFINE_INT32(CBRK_AIRSPD_CHK, 0);
|
|||||||
* @category Developer
|
* @category Developer
|
||||||
* @group Circuit Breaker
|
* @group Circuit Breaker
|
||||||
*/
|
*/
|
||||||
PARAM_DEFINE_INT32(CBRK_FLIGHTTERM, 0);
|
PARAM_DEFINE_INT32(CBRK_FLIGHTTERM, 121212);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Circuit breaker for engine failure detection
|
* Circuit breaker for engine failure detection
|
||||||
|
|||||||
@@ -679,7 +679,7 @@ static bool failureDetectorCheck(orb_advert_t *mavlink_log_pub, vehicle_status_s
|
|||||||
bool success = true;
|
bool success = true;
|
||||||
|
|
||||||
if (!prearm) {
|
if (!prearm) {
|
||||||
// Ignore power check after arming.
|
// Ignore failure detector check after arming.
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -46,7 +46,12 @@
|
|||||||
* FailureDetector Max Roll
|
* FailureDetector Max Roll
|
||||||
*
|
*
|
||||||
* Maximum roll angle before FailureDetector triggers the attitude_failure flag
|
* Maximum roll angle before FailureDetector triggers the attitude_failure flag
|
||||||
* Does not affect the behavior of the vehicle for now; only for logging
|
* If flight termination is enabled (@CBRK_FLIGHTTERM set to zero), the autopilot
|
||||||
|
* will terminate the flight and set all the outputs to their failsafe value
|
||||||
|
* as soon as the attitude_failure flag is set.
|
||||||
|
*
|
||||||
|
* Setting this parameter to 0 disables the check
|
||||||
|
*
|
||||||
* @min 0
|
* @min 0
|
||||||
* @max 180
|
* @max 180
|
||||||
* @unit degrees
|
* @unit degrees
|
||||||
@@ -58,7 +63,12 @@ PARAM_DEFINE_INT32(FD_FAIL_R, 60);
|
|||||||
* FailureDetector Max Pitch
|
* FailureDetector Max Pitch
|
||||||
*
|
*
|
||||||
* Maximum pitch angle before FailureDetector triggers the attitude_failure flag
|
* Maximum pitch angle before FailureDetector triggers the attitude_failure flag
|
||||||
* Does not affect the behavior of the vehicle for now; only for logging
|
* If flight termination is enabled (@CBRK_FLIGHTTERM set to zero), the autopilot
|
||||||
|
* will terminate the flight and set all the outputs to their failsafe value
|
||||||
|
* as soon as the attitude_failure flag is set.
|
||||||
|
*
|
||||||
|
* Setting this parameter to 0 disables the check
|
||||||
|
*
|
||||||
* @min 0
|
* @min 0
|
||||||
* @max 180
|
* @max 180
|
||||||
* @unit degrees
|
* @unit degrees
|
||||||
|
|||||||
Reference in New Issue
Block a user