forked from mavlink-router/mavlink-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample
116 lines (112 loc) · 3.47 KB
/
config.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# mavlink-router configuration file is composed of sections,
# each section have some keys and values. They
# are case insensitive, so `Key=Value` is the same as `key=value`.
#
# [This-is-a-section name-of-section]
# ThisIsAKey=ThisIsAValuye
#
# Following specifications of expected sessions and key/values.
#
# Section [General]: This section doesn't have a name.
#
# Keys:
# TcpServerPort
# A numeric value defining in which port mavlink-router will
# listen for TCP connections. A zero value disables TCP listening.
# Default: 5760
#
# ReportStats
# Boolean value <true> or <false> case insensitive, or <0> or <1>
# defining if traffic statistics should be reported.
# Default: false
#
# MavlinkDialect
# One of <auto>, <common> or <ardupilotmega>. Defines which MAVLink
# dialect is being used by flight stack, so mavlink-router can log
# appropiately. If <auto>, mavlink-router will try to decide based
# on heartbeat received from flight stack.
# Default: auto
#
# Log
# Path to directory where to store flightstack log.
# No default value. If absent, no flightstack log will be stored.
#
# DebugLogLevel
# One of <error>, <warning>, <info> or <debug>. Which debug log
# level is being used by mavlink-router, with <debug> being the
# most verbose.
# Default:<info>
#
# Section [UartEndpoint]: This section must have a name
#
# Keys:
# Device
# Path to UART device, like `/dev/ttyS0`
# No default value. Must be defined.
#
# Baud
# Numeric value stating baudrate of UART device
# Default: 115200
#
# Section [UdpEndpoint]: This section must have a name
#
# Keys:
# Address
# If on `Normal` mode, IP to which mavlink-router will
# route messages to (and from). If on `Eavesdropping` mode,
# IP of interface to which mavlink-router will listen for
# incoming packets. In this case, `0.0.0.0` means that
# mavlink-router will listen on all interfaces.
# No dafault value. Must be defined.
#
# Mode
# One of <normal> or <eavesdropping>. See `Address` for more
# information.
# No default value. Must be defined
#
# Port
# Numeric value defining in which port mavlink-router will send
# packets (or listen for them).
# Default value: Increasing value, starting from 14550, when
# mode is `Normal`. Must be defined if on `Eavesdropping` mode.
#
# Section [TcpEndpoint]: This section must have a name
#
# Keys:
# Address:
# IP to which mavlink-router will connect to.
# No default value. Must be defined.
#
# Port:
# Numeric value with port to which mavlink-router will connect to.
# No dafault value. Must be defined.
#
# RetryTimeout:
# Numeric value defining how many seconds mavlink-router should wait
# to reconnect to IP in case of disconnection. A value of 0 disables
# reconnection.
# Default value: 5
#
# Following, an example of configuration file:
[General]
#Mavlink-router serves on this TCP port
TcpServerPort=5790
ReportStats=false
#Which mavlink dialect is being used. Can be `common`[default] or `ardupilotmega`
MavlinkDialect=ardupilotmega
[UdpEndpoint alfa]
Mode = Eavesdropping
Address = 0.0.0.0
Port = 10000
[UartEndpoint bravo]
Device = /dev/tty0
Baud = 52000
[UdpEndpoint charlie]
Mode = Normal
Address = 127.0.0.1
Port = 11000
#Mavlink-router will connect to this TCP address
[TcpEndpoint delta]
Address = 127.0.0.1
Port = 25790
RetryTimeout=10