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
+4 -1
View File
@@ -118,7 +118,10 @@ private:
(ParamInt<px4::params::COM_LOW_BAT_ACT>) _low_bat_action,
(ParamFloat<px4::params::COM_DISARM_LAND>) _disarm_when_landed_timeout,
(ParamInt<px4::params::COM_OBS_AVOID>) _obs_avoid
(ParamInt<px4::params::COM_OBS_AVOID>) _obs_avoid,
(ParamInt<px4::params::COM_ONB_LOSS_T>) _onboard_loss_timeout,
(ParamInt<px4::params::COM_ONB_REG_T>) _onboard_regain_threshold
)
const int64_t POSVEL_PROBATION_MIN = 1_s; /**< minimum probation duration (usec) */