aboutsummaryrefslogtreecommitdiff
path: root/mavigator-server/src/main/resources/application.conf
blob: 28511ad1268940549af1d258dcfc54a3f8ce9008 (plain) (blame)
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
mavigator {

  # Interface to listen for client connections
  interface = "0.0.0.0"

  # Port on which to listen for client connections
  port = 8080

  # Mavlink system ID identifying this base station
  system_id = 1

  # Settings related to the connection with a UAV
  connection {

    # The type of connection to use
    # 'mock' or 'serial'
    type = mock

    # Mavlink component ID used by this connection,
    # in case it needs to inject messages. I.e. heartbeats
    # will originate from this ID.
    component_id = 1

    # Interval in milliseconds between heartbeat messages injected by
    # the connection 
    # 0 = no heartbeats injected
    heartbeat = 2000

    # Settings related to serial connections
    serial {
      # Serial port
      port = "/dev/ttyUSB0"
      # Baud rate (b/s)
      baud = 115200
      # Use two stop bits
      two_stop_bits = false
      # Parity check
      # 0 = None, 1 = Odd, 2 = Even
      parity = 0
    }

    # Settings related to mock connections
    mock {
      # Mavlink system ID of the simulated UAV
      remote_system_id = 42
      # Speed multiplier of simulation
      prescaler = 1
    }
  }

}