Browse Source

Failure detector - Disable flight termination by default. Modify FD_FAIL parameters description

sbg
bresch 6 years ago committed by Beat Küng
parent
commit
a72de95c94
  1. 2
      src/lib/circuit_breaker/circuit_breaker_params.c
  2. 2
      src/modules/commander/PreflightCheck.cpp
  3. 14
      src/modules/commander/failure_detector/failure_detector_params.c

2
src/lib/circuit_breaker/circuit_breaker_params.c

@ -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

2
src/modules/commander/PreflightCheck.cpp

@ -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 {

14
src/modules/commander/failure_detector/failure_detector_params.c

@ -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

Loading…
Cancel
Save