mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 10:01:39 +08:00
mavlink: Add flow control parameters (#19254)
This commit is contained in:
@@ -24,6 +24,14 @@ serial_config:
|
|||||||
then
|
then
|
||||||
set MAV_ARGS "${MAV_ARGS} -s"
|
set MAV_ARGS "${MAV_ARGS} -s"
|
||||||
fi
|
fi
|
||||||
|
if param compare MAV_${i}_FLOW_CTRL 0
|
||||||
|
then
|
||||||
|
set MAV_ARGS "${MAV_ARGS} -Z"
|
||||||
|
fi
|
||||||
|
if param compare MAV_${i}_FLOW_CTRL 1
|
||||||
|
then
|
||||||
|
set MAV_ARGS "${MAV_ARGS} -z"
|
||||||
|
fi
|
||||||
mavlink start ${MAV_ARGS} -x
|
mavlink start ${MAV_ARGS} -x
|
||||||
port_config_param:
|
port_config_param:
|
||||||
name: MAV_${i}_CONFIG
|
name: MAV_${i}_CONFIG
|
||||||
@@ -153,3 +161,18 @@ parameters:
|
|||||||
num_instances: *max_num_config_instances
|
num_instances: *max_num_config_instances
|
||||||
default: [1, 0, 0]
|
default: [1, 0, 0]
|
||||||
requires_ethernet: true
|
requires_ethernet: true
|
||||||
|
|
||||||
|
MAV_${i}_FLOW_CTRL:
|
||||||
|
description:
|
||||||
|
short: Enable serial flow control for instance ${i}
|
||||||
|
long: |
|
||||||
|
This is used to force flow control on or off for the the mavlink
|
||||||
|
instance. By default it is auto detected. Use when auto detction fails.
|
||||||
|
|
||||||
|
type: enum
|
||||||
|
values:
|
||||||
|
0: Force off
|
||||||
|
1: Force on
|
||||||
|
2: Auto-detected
|
||||||
|
num_instances: *max_num_config_instances
|
||||||
|
default: [2, 2, 2]
|
||||||
|
|||||||
Reference in New Issue
Block a user