Home FlytBase Forums API Reference

Raspberry Pi 3

Installing FlytOS

To install FlytOS on Raspberry Pi 3, 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 Raspberry Pi has internet access before proceeding. To access internet on your Raspberry Pi (for activation, loading maps, auto updates, etc), you can either connnect through a LAN cable from your router, or delete the access point and connect RPi’s wifi to your home router with internet access. Beginners can see this tutorial to learn about networking on Raspberry Pi. More advanced users can follow this networking setup guide.
  2. Launch FlytConsole. You can launch FlytConsole in the RPi’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

Connect the UART RX and TX pins of your Raspberry Pi 3 to the TELEM2 Tx and Rx pins of your Pixhawk as shown below. Click here for more details on Pixhawk.

../../../_images/RaspPinout.png

Connection between Raspberry Pi 3’s GPIO and Pixhawk’s TELEM 2

../../../_images/Pinout_PX_Rasp.png

Configuring Pixhawk Autopilot

For APM users

  1. Install QGC(QGroundControl) on 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 Raspberry Pi 3 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) on 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 Raspberry Pi 3 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.