mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-11 09:41:35 +08:00
Removed hardcoded onboard controller timeouts thresholds.
Added COM_ONB_LOSS_T and COM_ONB_REG_T parameters to specify thresholds that triggers "onboard link lost" and "onboard link regained". Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
committed by
Beat Küng
parent
156317e546
commit
14415b29c1
@@ -820,3 +820,29 @@ PARAM_DEFINE_INT32(NAV_RCL_ACT, 2);
|
||||
* @group Mission
|
||||
*/
|
||||
PARAM_DEFINE_INT32(COM_OBS_AVOID, 0);
|
||||
|
||||
/**
|
||||
* Time-out to wait when onboard connection is lost before triggering onboard lost action.
|
||||
* TODO: Define parameters to specify proper action to trigger.
|
||||
*
|
||||
* @group Commander
|
||||
* @unit s
|
||||
* @min 0
|
||||
* @max 60
|
||||
* @increment 1
|
||||
*/
|
||||
PARAM_DEFINE_INT32(COM_ONB_LOSS_T, 5);
|
||||
|
||||
/**
|
||||
* Onboard link regain time threshold
|
||||
*
|
||||
* After a onboard link loss: Amount of time between two heartbeats to consider connection healthy again.
|
||||
*
|
||||
* @group Commander
|
||||
* @unit s
|
||||
* @min 0
|
||||
* @max 3
|
||||
* @decimal 1
|
||||
* @increment 0.5
|
||||
*/
|
||||
PARAM_DEFINE_INT32(COM_ONB_REG_T, 1);
|
||||
|
||||
Reference in New Issue
Block a user