3. Quick Start: PX4#

Note

SkyHub does not support True Terrain following with PX4. SkyHub works only as data logger for payload sensor using position data from PX4 autopilot.

Connection with SkyHub during the flight can be established only if UgCS desktop is used as ground control software.

3.1. Hardware requirements#

  • SkyHub v3 device.

  • Drone running PX4 flight controller with firmware version 1.7+

  • 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).

3.2. Software requirements for the Windows PC#

3.2.1. UgCS desktop download and setup process#

  1. Download the installation package: https://www.sphengineering.com/flight-planning/ugcs-downloads

  2. Run the setup file.

  3. Read and acknowledge the license agreement.

  4. In the component selection tab, select ArduPilot to install necessary autopilot compatibility.

../../../_images/PX4_vsm.png

PX4 VSM in UgCS setup#

  1. Installation complete.

3.2.2. UgCS Custom Payload Monitor download and setup process#

  1. Download the latest available CPM version here: https://www.sphengineering.com/integrated-systems/downloads

  2. Run the setup file.

  3. Select the SkyHub license file for the SkyHub you will be using.

SkyHub license file selection
  1. Read and acknowledge the license agreement.

  2. 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.

3.2.3. SkyHub installation on the drone#

3.3. Physical setup#

Warning

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.

  1. Mount SkyHub on the drone in a safe, fixed position.

  2. Connect SkyHub Connector #3 (red) to the flight controller using the SkyHub 3 cable for Pixhawk autopilot.

  3. Connect SkyHub to a power source.

3.4. Autopilot configuration#

  1. Make sure UgCS version 5.13 or higher is used (download links can be found in Prerequisites section) and VSM for PX4 vehicles is installed.

  2. Establish Auxiliary connection between UgCS-CPM and SkyHub. See Preparation guide for instructions.

  3. When Auxiliary link is established, you should select it from the Link menu in UgCS-CPM.

../../../_images/auxiliary_link.png

Auxiliary Link settings 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.

  1. Enable MAVLink autopilot on SkyHub.

In UgCS-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.

../../../_images/enable_mavlink.png

Enabling MAVlink in UgCS-CPM#

  1. Restart SkyHub.

  2. Make sure that the UgCS PX4 VSM parameter vehicle.px4.custom_payload.onboard.component_id is equal to the Component ID value in the MAVLink settings within the UgCS-CPM.

  3. Make sure that the V2 Extension parameter is enabled.

../../../_images/mv-settings.png

MAVLINK settings#

  1. If SkyHub is connected to telemetry port 2, open the QGroundControl application, then go to Parameters -> MAVLink and set the parameter MAV_1_CONFIG to TELEM2.

../../../_images/qgc_telem2.png

SkyHub PX4 TELEM2 port configuration#

  1. Restart the autopilot.

  2. After restart, data forwarding for TELEM2 autopilot telemetry ports should be enabled. Set the parameter MAV_1_FORWARD to 1.

../../../_images/mav_forward.png

SkyHub PX4 TELEM2 port data forwarding configuration#

  1. Change the baud rate for the TELEM2 Serial Port (recommended 230400). Speed should be the same as configured on the SkyHub side in the MAVLink settings within the UgCS-CPM.

../../../_images/telem2_baud.png

SkyHub PX4 TELEM2 port baudrate configuration#

Note

SkyHub subscribes to the following MAVLink messages with telemetry rate defined by the Telemetry rate parameter in the MAVLink settings within the UgCS-CPM:

GPS2_RAW; GPS_RAW_INT; GLOBAL_POSITION_INT; ATTITUDE; SYSTEM_TIME; HEARTBEAT; DISTANCE_SENSOR

../../../_images/mav-telem-rate.png

Mavlink telemetry rate#