4
CONTENTS
1.6.2
Serial port configuration
Mandatory. At least one serial port should be configured, otherwise VSM will not try to connect to the vehicle.
•
Name:
vehicle.microdrones.serial_port
•
Description:
Serial port configuration, for more details see
Serial port configuration
. Default Microdrones
serial port communication speed is 38400 baud.
•
Example:
vehicle.microdrones.serial_port.1.name = com1
vehicle.microdrones.serial_port.1.baud = 38400
1.6.3
Model name override
By default the VSM sets ’MD’ model name for the Microdrones vehicles. It can be overriden to more specific name
in the VSM configuration.
Example:
vehicle.microdrones.custom.my_drone.serial_number = 1102
vehicle.microdrones.custom.my_drone.model_name = MD4-200
In this example the model name for the drone with serial number ’1102’ is overriden to value ’MD4-200’.
1.7
Common configuration file parameters
VSM configuration file is a text file specified via command line argument
- -config
of the VSM application. Example:
--config /etc/opt/ugcs/vsm-ardupilot.conf
Each configuration parameter is defined as a line in the configuration file with the following structure:
name1.name2....nameX = value
where name1, name2 ... nameX are arbitrary names separated by dots to divide a variable into logical blocks and
a value which can be a number value or a text string depending on the context. See below the description about
common VSM configuration parameters.
1.7.1
UgCS server configuration
1.7.1.1
Listening address
Mandatory.
•
Name:
ucs.local_listening_address = [IP address]
•
Description:
Local TCP address to listen for incoming connections from UgCS server. Specify
0.0.0.0
to
listen from all local addresses.
•
Example:
ucs.local_listening_address = 0.0.0.0
1.7.1.2
Listening port
Mandatory.
•
Name:
ucs.local_listening_port = [port number]
•
Description:
Local TCP port to listen for incoming connections from UgCS server. Default is 5556.
•
Example:
ucs.local_listening_port = 5556
Copyright © 2017, SPH Engineering