2. Setup Interface to ArduPilot#

SkyHub can be connected to the flight controller flashed with the ArduPilot 4.x.x firmware.

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

../../../../_images/ugcs_ardu_vsm_install.png

UgCS installation Support for ArduPilot vehicles#

  1. Configure UgCS ArduPilot VSM. Open vsm-ardupilot.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 settings if needed.

../../../../_images/ardu_vsm.png

ArduPilot VSM configuration file#

  1. Connect the SkyHub to the drone and power on the system.

  2. Launch the UgCS-CPM software on your computer.

  3. Navigate to “Settings”, from the drop-down list select “SkyHub Autopilots” and enable “MAVLINK”.

Note

Only one autopilot may be enabled at a time. In this case, DJI should be disabled.

../../../../_images/mv-autopilot.png

MAVLINK autopilot#

  1. Restart the system.

  2. After the connection is reestablished, launch the UgCS-CPM and navigate to “Settings” and from the drop-down list select “MAVLink settings”.

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

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

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

MAVLINK settings#

  1. Open the Mission Planner application, connect it to the vehicle autopilot and check the serial port settings used for SkyHub communication. Check the port configured baud rate. Speed should be the same as configured in the MAVLink settings within the UgCS-CPM (recommended 230400). If adjustment is needed, don’t forget to write them and restart the autopilot.

  2. Check communication between SkyHub and the autopilot. Using Mission Planner, open Setup -> Advanced -> MAVLink inspector.

../../../../_images/mp_mav_insp.png

Mission Planner MAVlink inspector#

  1. In case of correct connection and configuration, the MAVLink inspector shows communication between SkyHub and the autopilot.

../../../../_images/mp_mav_insp_data.png

Mission Planner MAVlink inspector data#

Note

Vehicle 2 and Comp 5 correspond to System ID (2) and Component ID (5) fields in the MAVLink settings (UgCS-CPM).

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

../../../../_images/ugcs_cpm_data_b64.png

UgCS, drone telemetry#