Quick Start: ArduPilot

Hardware requirements

  • SkyHub v3 device.
  • Drone running ArduPilot flight controller with firmware 4.* or higher.
  • Mounting parts to install SkyHub.
  • SkyHub3 cable for Pixhawk autopilot or cable provided by drone manufacturer to connect SkyHub with autopilot.
  • Power output (according to SkyHub required input power).

Software requirements for the Windows PC

UgCS desktop download and setup process

  • Download the installation package.
  • Run the setup file.
  • Read and acknowledge the license agreement.
  • In the component selection tab, select ArduPilot to install necessary autopilot compatibility.

  • Installation complete.

UgCS Custom Payload Monitor download and setup process

  • Download the latest available CPM version.
  • Run the setup file.
  • Select the SkyHub license file for the SkyHub you will be using.

  • Read and acknowledge the license agreement.
  • Installation complete.

Note

If you do not have a license file or need a new one, please reach out to us at support@ugcs.com and provide your SkyHub serial number.

Physical setup

Caution

Power off the system when connecting cables. To avoid short-circuiting or causing potentially harmful power fluctuations, it is recommended to power off the entire system before performing any cable plug-in or unplugging. Some of the payload sensors used are extremely sensitive to power changes and may be damaged.

  • Mount SkyHub on the drone in a safe, fixed position.
  • Connect SkyHub Connector #3 (red) to the flight controller using the SkyHub 3 cable for Pixhawk autopilot (or cable provided by drone manufacturer).
  • Connect SkyHub to a power source.

UgCS configuration

  • Make sure UgCS version 5.10.2 or higher is used (download links can be found in the Prerequisites section) and VSM for ArduPilot vehicles is installed.
  • Configure UgCS ArduPilot VSM. Open vsm-mavlink.conf in a text editor with administrator privileges. The file is located in the UgCS installation folder (default path: C:\\Program Files (x86)\\UgCS\\bin). Find, uncomment, and adjust the following lines:
mavlink-new.png
  • Establish an Auxiliary connection between UgCS-CPM and SkyHub. See Preparation guide for instructions.
  • When the Auxiliary link is established, you should select it from the Link menu in UgCS-CPM.

Note

The following functionalities are available when SkyHub is connected via the Auxiliary link:

  • Widget configuration in UgCS-CPM.
  • Data from payload in widgets.
  • Data download from SkyHub.
  • Firmware upgrade.
  • SkyHub configuration.
  • ArduPilot configuration for SkyHub - On the autopilot, it is necessary to configure the serial port to which SkyHub will be connected.

Parameters:

Info

SERIALx_BAUD

230400

SERIALx_PROTOCOL

2

MAVLink2

  • Enabling MAVLink autopilot on SkyHub

In CPM, press the Settings button, choose SkyHub Autopilots from the menu, and enable MAVLink. Press Save and choose to reload the system to apply changes.

If the autopilot configuration matches the default settings in SkyHub, the drone connection indicator in UgCS-CPM must turn green.

  • Verify the connection on ArduPilot using Mission Planner. In Mission Planner, open Setup -> Advanced -> MAVLink inspector.
  • In case of correct connection and configuration, the MAVLink inspector shows communication between SkyHub and the autopilot.

Vehicle 2 and Comp 5 correspond to the configured SkyHub System (2) and Component (5) ID.

  • In case of correct autopilot, UgCS, and SkyHub configuration, Payload data b64 is displayed in the drone telemetry in UgCS.

Altimeter setup

Info

There are two possible ways how the Altimeter can be attached to the Arudpilot drones:

  1. Connected to the SkyHub Connector #1.
  2. Connected directly to the drone.

When the Altimeter is connected to SkyHub

  • Connect the altimeter to the SkyHub Connector #1 (yellow).
  • Navigate to the “Payload” section.
  • Enable the driver for the Altimeter you will use, and confirm the reload.

Note

In this example, we will use the US-D1 model.

../../../images/payloads-altimeter-example.png

  • Next, in the UgCS-CPM software, navigate to the “All settings” section.
  • From the drop-down list, select “Mavlink settings”.
  • Make sure that the “Use SkyHub altimeter” option is enabled.
  • Make sure that the “Use drone altimeter” option is disabled.
  • Click the “Save” button and confirm reload.

../../../images/mavlink-settings-skyhub.png

  • Click the drop-down list again and select the “Altimeters” section.
  • Set the default altimeter to your model (in our example, Ainstein US-D1). Click “Save” and confirm reload.

../../../images/default-ainstein.png

  • Go back to the main menu and click the “Start” button.
  • From the drop-down list, select your altimeter (in our example it is “Altimeter: Ainstein US-D1”) and press the “+” button.

../../../images/altimeter-to-skyhub.png

  • Altimeter configuration is complete.

../../../images/us-d1-ready.png

When the altimeter is connected directly to the drone

  • Connect the altimeter to your drone.
  • In the UgCS-CPM software, navigate to the “All settings” section.
  • From the drop-down list, select “Mavlink settings”
  • Make sure that the “Use SkyHub altimeter” option is enabled.
  • Make sure that the “Use drone altimeter” option is enabled.
  • Click the “Save” button and confirm reload.

../../../images/altimeter-toggles.png

  • Click the drop-down list again and select the “Altimeters” section.
  • Set the default altimeter to “Mavlink (autopilot)”. Click “Save” and confirm reload.

../../../images/default-mavlink.png

  • Go back to the main menu and click the “Start” button.
  • From the drop-down list, select “Altimeter: MAVLINK” and press the “+” button.

../../../images/altimeter-mavlink.png

  • Altimeter configuration is complete.

../../../images/altimeter-ready.png

Configuring ArduPilot to Report Ellipsoidal Height (HAE) Instead of AMSL

By default, ArduPilot reports GPS altitude as height above Mean Sea Level (AMSL), which is calculated using a geoid model. For many precision survey and mapping applications — including bathymetric and photogrammetric workflows — it's preferable to work with ellipsoidal height (Height Above Ellipsoid, HAE) instead, since this is the raw geometric height reported directly by the GPS receiver relative to the WGS84 reference ellipsoid, without any geoid correction applied.

Note

ArduPilot allows you to switch the reported altitude type from AMSL to HAE through a single parameter change: GPS_DRV_OPTIONS.

Configuration steps

  • Connect your ground station to the autopilot. Open Mission Planner and connect to the flight controller
  • Navigate to the Config section and click on the Full Parameter List
ardu_parameter_list.png
  • Use the search or filter function to find the parameter named: GPS_DRV_OPTIONS
gps_drv_option.png
  • Press the Set Bitmask option and check Use ellipsoid height instead of AMSL
change_height.png
  • Write and save the parameter
write_parameters.png
  • Power-cycle or reboot the flight controller so the new setting takes effect.
  • Configuration is complete.