diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-07-24 08:57:58 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-07-24 08:57:58 +0200 |
commit | a35814d15b1317f73f325e98f0500f5fd1233583 (patch) | |
tree | 6c041ad007981d813084755d4c18fef0853329ed /src/modules/commander/commander_params.c | |
parent | f10d1277a5e795256a247cb6f130cefba12c5ffc (diff) | |
download | px4-firmware-a35814d15b1317f73f325e98f0500f5fd1233583.tar.gz px4-firmware-a35814d15b1317f73f325e98f0500f5fd1233583.tar.bz2 px4-firmware-a35814d15b1317f73f325e98f0500f5fd1233583.zip |
dl loss: correct timeout, add hysteresis also for regain
Diffstat (limited to 'src/modules/commander/commander_params.c')
-rw-r--r-- | src/modules/commander/commander_params.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/modules/commander/commander_params.c b/src/modules/commander/commander_params.c index f73ae71f3..3d1e231c6 100644 --- a/src/modules/commander/commander_params.c +++ b/src/modules/commander/commander_params.c @@ -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); |