forked from mavlink-router/mavlink-router
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.sample
139 lines (135 loc) · 4.33 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# mavlink-router configuration file is composed of sections,
# each section has 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.
#
# LogMode
# One of <always>, <while-armed>
# Default: always, log from start until mavlink-router is stopped.
# If set to while-armed, a new log file is created whenever the vehicle is
# armed, and closed when disarmed.
#
# MinFreeSpace
# The Log Endpoint will delete old log files until there are MinFreeSpace bytes
# available on the storage device of the logs. Set to 0 to ignore this limit.
# Default: 0 (disabled)
#
# MaxLogFiles
# Maximum number of log files to keep. The Log Endpoint will delete old
# log files to keep the total below this number. Set to 0 to ignore this limit.
# Default: 0 (disabled)
#
# DebugLogLevel
# One of <error>, <warning>, <info>, <debug> or <trace>. Which debug log
# level is being used by mavlink-router, with <trace> 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
#
# FlowControl
# Boolean value <true> or <false> case insensitive, or <0> or <1>
# defining if flow control should be enabled
# Default: false
#
#
# 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.
# IPv6 addresses must be enclosed in square brackets.
# No default 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.
# IPv6 addresses must be enclosed in square brackets.
# No default value. Must be defined.
#
# Port:
# Numeric value with port to which mavlink-router will connect to.
# No default 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
MavlinkDialect=auto
[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