dl loss: correct timeout, add hysteresis also for regain

This commit is contained in:
Thomas Gubler
2014-07-24 08:57:58 +02:00
parent f10d1277a5
commit a35814d15b
2 changed files with 31 additions and 8 deletions
+15 -3
View File
@@ -106,13 +106,25 @@ PARAM_DEFINE_FLOAT(BAT_CAPACITY, -1.0f);
*/
PARAM_DEFINE_INT32(DL_LOSS_EN, 0);
/** Datalink timeout threshold
/** Datalink loss time threshold
*
* After this amount of seconds the data link lost mode triggers
* After this amount of seconds without datalink the data link lost mode triggers
*
* @group commander
* @unit second
* @min 0
* @max 1000
* @max 30
*/
PARAM_DEFINE_INT32(COM_DL_LOSS_T, 10);
/** Datalink regain time threshold
*
* After a data link loss: after this this amount of seconds with a healthy datalink the 'datalink loss'
* flag is set back to false
*
* @group commander
* @unit second
* @min 0
* @max 30
*/
PARAM_DEFINE_INT32(COM_DL_REG_T, 0);