Skip to content
Snippets Groups Projects
Commit fea91c96 authored by bresch's avatar bresch Committed by Daniel Agar
Browse files

Failure Detector - Use dedicated parameters for attitude checks

parent 72f2317c
No related branches found
No related tags found
No related merge requests found
......@@ -746,6 +746,30 @@ PARAM_DEFINE_FLOAT(COM_POS_FS_EPV, 10);
*/
PARAM_DEFINE_FLOAT(COM_VEL_FS_EVH, 1);
/**
* FailureDetector Max Roll
*
* Maximum roll angle before FailureDetector triggers the attitude_failure flag
* Does not affect the behavior of the vehicle for now; only for logging
* @min 0
* @max 180
* @unit degrees
* @group Commander
*/
PARAM_DEFINE_INT32(COM_FAIL_R, 60);
/**
* FailureDetector Max Pitch
*
* Maximum pitch angle before FailureDetector triggers the attitude_failure flag
* Does not affect the behavior of the vehicle for now; only for logging
* @min 0
* @max 180
* @unit degrees
* @group Commander
*/
PARAM_DEFINE_INT32(COM_FAIL_P, 60);
/**
* Next flight UUID
*
......
......@@ -72,8 +72,8 @@ public:
private:
DEFINE_PARAMETERS(
(ParamInt<px4::params::VT_FW_QC_P>) _fail_trig_pitch,
(ParamInt<px4::params::VT_FW_QC_R>) _fail_trig_roll
(ParamInt<px4::params::COM_FAIL_P>) _fail_trig_pitch,
(ParamInt<px4::params::COM_FAIL_R>) _fail_trig_roll
)
// Subscriptions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment