mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 21:11:35 +08:00
Add switch logic for high latency telemetry in commander
Switch to the high latency telemetry, if available, if every low latency link is lost. Switch back if any low latency link is regained. Only indicate that all links are lost if all high and low latency links are lost. Allow different timeouts for high and low latency links.
This commit is contained in:
@@ -121,6 +121,31 @@ PARAM_DEFINE_INT32(COM_DL_LOSS_T, 10);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(COM_DL_REG_T, 0);
|
||||
|
||||
/**
|
||||
* High Latency Datalink loss time threshold
|
||||
*
|
||||
* After this amount of seconds without datalink the data link lost mode triggers
|
||||
*
|
||||
* @group Commander
|
||||
* @unit s
|
||||
* @min 60
|
||||
* @max 3600
|
||||
*/
|
||||
PARAM_DEFINE_INT32(COM_HLDL_LOSS_T, 120);
|
||||
|
||||
/**
|
||||
* High Latency 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 s
|
||||
* @min 0
|
||||
* @max 60
|
||||
*/
|
||||
PARAM_DEFINE_INT32(COM_HLDL_REG_T, 0);
|
||||
|
||||
/**
|
||||
* Engine Failure Throttle Threshold
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user