Manual Microdrones
Manual Microdrones
UgCS 3.2.113
Contents
2 Disclaimer 12
See Disclaimer.
Please follow these steps to connect an Microdrones vehicle to the UgCS:
1. Microdrones vehicle must be properly configured, calibrated and tested using tools and instruction from the
official Microdrones web site prior to using it with UgCS. UgCS does not support initial configuration,
setup and calibration of Microdrones vehicles.
2. Turn on the vehicle. There are two communication channels in a drone - uplink and downlink. Uplink channel
is connected via USB-serial cable, plug it in the drone connector (you should connect to FC, not NC - connec-
tor flat side to the battery, see manufacturer manual for detailed explanation) and to the computer where VSM
is running. The uplink channel can be used for mission uploading and commands execution. For telemetry
reception you need downlink channel which is connected to the downlink wire on the drone bottom. You can
use manufacturer provided downlink equipment which uses video transmitter sound channel for telemetry
data transferring and downlink decoder ground unit. Alternatively you can connect your own USB-serial cable
or radio-modem to the downlink wire. Before that you should switch the telemetry output to digital mode using
a jumper on the drone board, see manufacturer manual for the details.
For initial vehicle set up in UgCS you can connect either uplink or downlink whichever is more convenient for
you.
For all connection options you will have USB-serial device on the PC side so proper OS driver for virtual serial
port should be installed. Please refer to your communication equipment manufacturer documentation about
driver installation instructions.
3. Open Vehicles window in UgCS Client and wait until new vehicle appears there automatically. Either Uplink
or Downlink connection should be available. Select the necessary vehicle and click Edit to start editing the
corresponding vehicle profile. Now you can change the default vehicle name to be convenient for you:
Note that if both uplink and downlink are connected only uplink will be active because the Microdrones stops
telemetry sending after reception of commands via uplink. The downlink can be activated either by issuing "A-
RM" command or by disconnecting uplink and re-inserting a battery.
Home location cannot be modified by UgCS. It is controlled by the autopilot and is permanently bound to a take-off
position.
Nothing specific.
GPS Lost:
Action Result
Wait Aircraft tries to maintain altitude
Land Aircraft slowly decends
RC Lost:
Action Result
Wait Aircraft returns home and lands
Land Aircraft returns home and lands
Return Home Aircraft changes altitude to failsafe ALT(50m) and
returns home
Continue Aircaft continues mission
Battery Low:
Action Result
Wait If possible aircraft returns home and lands, if not
possible slowly decends
Land If possible aircraft returns home and lands, if not
possible slowly decends
Return Home If possible aircraft returns home and lands, if not
possible slowly decends
Continue Aircaft continues mission
Default configuration file of the Microdrones VSM suits most needs and it is generally not necessary to modify it.
Configuration file location:
• On Microsoft Windows:
• On GNU/Linux:
/etc/opt/ugcs/vsm-microdrones.conf
• On Apple OS X:
Typically vehicle is connected to UgCS via radio datalink which appears as serial port when USB cable is plugged
in. See Serial port configuration for details.
• Example:
connection.serial.1.name = COM21
connection.serial.1.baud = 38400
All VSMs share a common set of configuration file parameters described in Common configuration file parameters.
Microdrones VSM configuration file prefix is:
vehicle.microdrones
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’.
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.
• Listen for connection form the UgCS server. See Listening address and Listening port.
When VSM is configured in listening mode automatic VSM discovery can be set up, too. See Automatic
service discovery
• Initiate connection to UgCS server. See UgCS server address and UgCS server port.
Optional.
• Description: Local address to listen for incoming connections from UgCS server.
Optional.
• Description: Local TCP port to listen for incoming connections from UgCS server.
Optional.
Optional.
Optional.
• Default: 10
• Example: retry_timeout = 11
VSM can respond to automatic service discovery requests form UgCS server.
When this parameter is not configured, service discovery is disabled.
Optional.
1.7.3.1 Level
Optional.
• Default: info
Optional.
• Description: Absolute or relative (to the current directory) path to a logging file. Logging is disabled if logging
file is not defined. File should be writable. Backslash should be escaped with a backslash.
Optional.
• Description: Maximum size of a single log file. When maximum size is exceeded, existing file is renamed
by adding a time stamp and logging is continued into the empty file. [size] should be defined as a number
postfixed by a case insensitive multiplier:
• Default: 100 Mb
Optional.
• Description: Log rotation feature. Maximum number of old log files to keep. After reaching single_max_size
of current log file VSM will rename it with current time in extension and start new one. VSM will delete older
logs so the number of old logs does not exceed the max_file_count.
• Default: 1
• Example: log.max_file_count = 5
Optional.
• Description: File to dump all generated missions to. Timestamp is appended to the name. Delete the entry
to disable mission dumping. All directories in the path to a file should be already created.
When vehicle is connected via unreliable link VSM will retry each command several times before failing. This section
describes the parameters which control the command execution.
• Description: Number of times the command will be issued before declaring it as failed. Must be greater than
zero.
• Default: 3
• Example: vechicle.command_try_count = 5
• Unit: second
• Default: 1
Optional.
• Description: String value used as prefix for all vehicle serial numbers conected to this VSM. Can be used to
connect vehicles with equal serial numbers to the same server via different VSMs
• Incoming UDP (any peer), see Incoming UDP connection configuration (any peer) for details.
VSM which communicates with vehicles via serial ports should define at least one serial port, otherwise VSM will
not try to connect to the vehicles. Port name and baud rate should be both defined.
Required.
• Description: Ports which should be used to connect to the vehicles by given VSM. Port names are defined
by a [regular expression] which can be used to define just a single port or create a port filtering regular
expression. Expression is case insensitive on Windows. [index] is a arbitrary port indexing name.
Required.
• Description: Baud rate for port opening. [baud index] is an optional arbitrary name used when it is necessary
to open the same serial port using multiple baud rates. [index] is an arbitrary port indexing name.
Optional.
• Description: Ports which should not be used for vehicle access by this VSM. Port names are defined by a
[regular expression] which can be used to define just a single port or create a port filtering regular expression.
Filter is case insensitive on Windows. [exclude index] is a arbitrary indexing name used when more than one
exclude names are defined.
Optional.
• Description: Enable (yes) or disable (no) serial port access arbitration between VSMs running on the same
machine. It is recommended to have it enabled to avoid situation when multiple VSMs try to open the same
port simultaneously.
• Default: yes
• Example: connection.serial.use_arbiter = no
VSM can be configured to connect to the vehicle via TCP. VSM will try to establish connection to the specified
address:port.
Used to connect to vehicle simulator or when vehicle is equipped with WiFi adapter.
Required.
Required.
VSM can be configured to listen for incoming TCP connections from the vehicle. Multiple vehicles are supported on
the same port.
Used to connect to vehicle equipped with WiFi adapter.
Required.
Optional.
VSM can be configured to connect to the vehicle via UDP. VSM will try to establish UDP connection to the specified
address:port.
Required.
Required.
Optional.
Optional.
VSM can be configured to listen for UDP conncections from the vehicle. Vehicle must be actively sending heart-
beat/telemetry on specified UDP port before it can be detected by VSM. VSM will automatically detect multiple
vehicles on the same port. This is very useful for "drone swarm" setups as there is no need to specify connector for
each vehicle and no need to know the IP address of each vehicle in advance.
Required.
Optional.
This connection type is similar to "udp_in" with the exception that all incoming traffic will be recevied as one stream.
It is used for special purpose connections and cannot be used to connect vehicles.
Required.
Optional.
VSM is able to communicate with vehicle over named pipe. The pipe must already exist.
VSM is able to communicate with vehicle via proxy service which redirects dataflow received from vehicle through
TCP connection to VSM and vice versa using specific protocol. In other words proxy service appears as a router
between vehicle and VSM. At the moment there is one implementation of proxy in UgCS called XBee Connector
which retranslates data from ZigBee network to respective VSM.
Required.
Required.
• Description: TCP port to be connected with proxy through. Should be the same as in congiguration on proxy
side.
2 Disclaimer