Difference between revisions of "Iris"

From PaparazziUAV
Jump to: navigation, search
Line 1: Line 1:
 
= Introduction =
 
= Introduction =
  
The Iris drone was manufactured by 3DR and is based arround the Pixhawk autopilot. Paparazzi fully [https://wiki.paparazziuav.org/wiki/Pixhawk supports] the Pixhawk, and this page serves as simple step-by-step guide to get a Pixhawk based drone flying on with the Paparazzi autopilot. In this example, only standard Pixhawk hardware is used, as it comes delivered with the stock Iris.
+
The Iris+ drone was manufactured by 3DR and is based around the Pixhawk autopilot. Paparazzi [https://wiki.paparazziuav.org/wiki/Pixhawk supports] the Pixhawk hardware, and this page serves as simple step-by-step guide to get a Pixhawk based drone flying on with the Paparazzi autopilot. In this example, only standard Pixhawk hardware is used, as it comes delivered with the stock Iris.
  
 
= Getting the Iris flight ready=
 
= Getting the Iris flight ready=
  
 
You'll need:
 
You'll need:
# The stock Iris drone, (equipped with a Pixhawk),  
+
# The stock Iris drone, (equipped with the Pixhawk),  
 
# Its stock 3DR radio's and 3DR RC.  
 
# Its stock 3DR radio's and 3DR RC.  
# The Pixhwak should still contain the PX4 / APM bootloader.  
+
# The Pixhawk should still contain the PX4 / APM bootloader.  
 
# A computer with Paparazzi [http://wiki.paparazziuav.org/wiki/Installation installed].
 
# A computer with Paparazzi [http://wiki.paparazziuav.org/wiki/Installation installed].
 
# A micro USB cable.
 
# A micro USB cable.
Line 18: Line 18:
 
# Make sure to set the target to AP again, and build.
 
# Make sure to set the target to AP again, and build.
 
# Plug in the 3DR radio to the computer. Select USB0 session in Paparazzi Center.
 
# Plug in the 3DR radio to the computer. Select USB0 session in Paparazzi Center.
# Calibrate the IMU and the ESCs of the Iris.
+
# Calibrate the IMU and the ESCs of the Iris+.
 +
 
 +
## Calibrate the ESCs
 +
The original PX4 firmware calibrates the ESCs automatically, paparazzi does not support this. Therefor it is needed to calibrate the ESCs manually. For this two options are available:
 +
* Calibrate by using a servo tester
 +
* Calibrate using <i> mode RC direct</i>
 +
The first option requires the user to have a servo tester, open up the Iris+ and disconnect wires. Therefor, this wiki describes the second option.
 +
 
 +
In order to use the RC direct mode, a change is required in the airframe xml configuration. Check if the following lines are configured in the section AUTOPILOT:
 +
{{Box Code|conf/airframes/TUDELFT/tudelft_iris_indi.xml|<source lang="xml">
 +
<define name="MODE_STARTUP" value="AP_MODE_ATTITUDE_DIRECT" />
 +
<define name="MODE_MANUAL" value="AP_MODE_ATTITUDE_DIRECT" />
 +
</source>}}
 +
Secondly, comment or temporarily remove the following line:
 +
{{Box Code|conf/airframes/TUDELFT/tudelft_iris_indi.xml|<source lang="xml">
 +
<define name="FBW_MODE_AUTO_ONLY" value="true"/>
 +
</source>}}
 +
<b> Important: for your own safety it is strongly recommended to remove the propellers </b> <br/>
 +
Note: <i> mode RC direct</i> ignores the radio kill switch and software arm procedure, throttle is directly commanded through the stick!
 +
 
 +
Build and upload the AP. Turn on the radio, plug in the battery to the Iris+ (with props removed!), and the set radio mode to <i>std<i/> (see figure 2)

Revision as of 00:55, 13 December 2016

Introduction

The Iris+ drone was manufactured by 3DR and is based around the Pixhawk autopilot. Paparazzi supports the Pixhawk hardware, and this page serves as simple step-by-step guide to get a Pixhawk based drone flying on with the Paparazzi autopilot. In this example, only standard Pixhawk hardware is used, as it comes delivered with the stock Iris.

Getting the Iris flight ready

You'll need:

  1. The stock Iris drone, (equipped with the Pixhawk),
  2. Its stock 3DR radio's and 3DR RC.
  3. The Pixhawk should still contain the PX4 / APM bootloader.
  4. A computer with Paparazzi installed.
  5. A micro USB cable.

Steps you will need to perform:

  1. Plug in the USB cable to the Iris. Remove the props. Leave the battery disconnected.
  2. Flash both the AP and FBW. See here
  3. Power cycle the Pixhawk (e.g. replug USB).
  4. Make sure to set the target to AP again, and build.
  5. Plug in the 3DR radio to the computer. Select USB0 session in Paparazzi Center.
  6. Calibrate the IMU and the ESCs of the Iris+.
    1. Calibrate the ESCs

The original PX4 firmware calibrates the ESCs automatically, paparazzi does not support this. Therefor it is needed to calibrate the ESCs manually. For this two options are available:

  • Calibrate by using a servo tester
  • Calibrate using mode RC direct

The first option requires the user to have a servo tester, open up the Iris+ and disconnect wires. Therefor, this wiki describes the second option.

In order to use the RC direct mode, a change is required in the airframe xml configuration. Check if the following lines are configured in the section AUTOPILOT:

File: conf/airframes/TUDELFT/tudelft_iris_indi.xml
<define name="MODE_STARTUP" value="AP_MODE_ATTITUDE_DIRECT" />
<define name="MODE_MANUAL" value="AP_MODE_ATTITUDE_DIRECT" />

Secondly, comment or temporarily remove the following line:

File: conf/airframes/TUDELFT/tudelft_iris_indi.xml
<define name="FBW_MODE_AUTO_ONLY" value="true"/>

Important: for your own safety it is strongly recommended to remove the propellers
Note: mode RC direct ignores the radio kill switch and software arm procedure, throttle is directly commanded through the stick!

Build and upload the AP. Turn on the radio, plug in the battery to the Iris+ (with props removed!), and the set radio mode to std<i/> (see figure 2)