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:
Claudio Micheli
2019-03-12 11:24:33 +01:00
committed by Beat Küng
parent 156317e546
commit 14415b29c1
3 changed files with 33 additions and 3 deletions
+26
View File
@@ -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);