Home FlytBase Forums API Reference

ODROID-XU4

Installing FlytOS

To install FlytOS on ODROID-XU4, there are 2 ways that you can follow. We recommend the first method for an easier install:

Activate FlytOS

Note

This step requires you to have a registered FlytBase Account. In case you don’t have an account, create a FlytBase Account before you proceed.

You have to activate installed FlytOS, without which critical APIs would not function.

  1. Make sure your ODROID-XU4 has internet access before proceeding. You can connect to internet using WiFi dongle or ethernet to the ODROID-XU4.
  2. Launch FlytConsole. You can launch FlytConsole in the ODROID’s browser using the URL http://localhost/flytconsole or on your PC’s browser using the URL http://ip-address-of-device/flytconsole . In FlytConsole click on Activate Now tag under License tab at bottom right corner. A pop-up will appear which will direct you to the device registration page. If you are not logged in, enter your FlytBase Account credentials to log in.
  3. Choose a device nick-name and select your compute engine.
  4. In the license drop-down list, select existing license if available or select ‘Issue a new license’. You can also provide a nick-name for your license.
  5. Choose commercial license if you have purchased a commercial license and have the commercial license code or select the personal license.
  6. Click on Save Changes to register device and generate a license key.
  7. Copy the generated license key and enter it in FlytConsole to complete the activation process of your device. The Activate Now tag at bottom right corner of FlytConsole should now turn green.

Hardware Setup

Telemetry Connection

FlytOS needs telemetry data from autopilot(Pixhawk). Connect Pixhawk’s Telemetry port to ODROID-XU4.

  1. [Recommended] Connect Pixhawk’s Telem2 port to ODROID UART0 port. We have used the ODROID XU4 Shifter Shield as a level converter and the pins mapped as GPA0.0(RX) and GPA0.1(TX) have been used as serial port UART0.
  2. Connect Pixhawk’s micro-USB to the USB port of ODROID. [Not Recommended if using APM]
  3. Connect Pixhawk’s Telem2 port to the USB port of ODROID using UART-USB converter.

Below is a hardware setup youtube video for Pixhawk + ODROID-XU4 covering all the necessary information, including WiFi-enabling the ODROID.


Configuring Pixhawk Autopilot

For APM users

  1. Install QGC(QGroundControl) in your local machine.
  2. Connect Pixhawk to QGC using the USB port at the side of Pixhawk.
  3. Install the latest stable APM release in Pixhawk using QGC by following this guide.
  4. Once done, visit parameter widget in QGC and search for parameters SERIAL2_BAUD and SERIAL2_PROTOCOL, set them to 921 and 1 respectively. This would enable communication between FlytOS running on ODROID-XU4 and Pixhawk.
  5. Configure a dedicated switch position for GUIDED MODE during RC calibration, to allow FlytOS to take control of drone from RC when vehicle is switched to GUIDED MODE.

For PX4 users

  1. Install QGC(QGroundControl) in your local machine.
  2. Connect Pixhawk to QGC using the USB port at the side of Pixhawk.
  3. Install the latest stable PX4 release in Pixhawk using QGC by following this guide.
  4. Once done, visit parameter widget in QGC and search for parameter SYS_COMPANION and set it to 921600. This would enable communication between FlytOS running on ODROID-XU4 and Pixhawk.
  5. Configure a dedicated two way switch for OFFBOARD MODE during RC calibration, to allow FlytOS to take control of drone from RC when vehicle is switched to OFFBOARD MODE.