Skip to main content

Configuration

Auxiliary function switches#

Auxiliary function switches on channels 5-8 are still not supported and could lead to erroneous PWM generation on motors' channels.

danger

Do not set auxiliary function switches to RC5..8!

Relay Switch#

Relay is an digital output pin that can be switched between 0 volts and 3.3V. Similar to a servo it allows the flight controller to invoke some action from another device on the vehicle.

note

This feature is available on ArduCopter, ArduPlane, and ArduRover.

Relay Switch setup guide.

You need to specify RELAY_PIN parameter in Full Parameter List in Mission Planner or in Parameters in QGC. Use the following table for this:

NameDigital Pin number
PWM10
PWM21
PWM32
PWM43
PWM54
PWM65
PWM76
PWM87
PWM98
PWM109
PWM1110
PWM1211
PWM1312
PWM1413
IO1714
IO1815
LED RED16
LED GREEN17
LED BLUE18
danger

Don't set digital pin to PWM channel used for control servos!

Second compass configuration#

Navio2 contains two compasses: AK8963 and LSM9DS1. The latter has lower offsets and set as primary. AK8963 is disabled by default.

We will walk you through the steps required to perform the onboard compass calibration.

Onboard calibraton#

Navigate to Initial Setup - Mandatory Hardwawre - Compass

  1. If you use two compasses tick Use this compass in Compass #2 tab.
  2. Click on Start button in Onboard Mag Calibration tab.
  3. Rotate your drone around all axis.
  4. Wait for calibration to complete (the process ends with a message similar to one on the picture attached below).

compass-onboard-calibration

  1. Click Accept button (there is a change nothing is going to happen in responce).
  2. Swith to another view and get back to Compass Calibration.
  3. Verify that offsets that have been calculated in the previous steps have been saved.

Voltage and current sensing#

If you have original power module connected to Navio2, you can get battery voltage and curent readings from it.

PM

To setup voltage and current measurement for ArduPilot, do this:

  1. Switch to Initial Setup tab in Mission Planner.
  2. Navigate to Optional Hardware - Battery Monitor section.
  3. Set Monitor, Sensor and ArduPilot Ver options as shown below.

BatteryMonitor

Now you need restart both ArduPilot and connection between Mission Planner and ArduPilot:

  1. Use Ctrl-F shortcut to open Temp Screen.
  2. Press reboot pixhawk button.
  3. On the main menu bar press DISCONNECT and then CONNECT.

When everything is done, you should see voltage and current values on Flight Data screen.

Also you can check in full parameter list that:

BATT_CURR_PIN 3BATT_VOLT_PIN 2

Further configuration#

As other ArduPilot configuration procedures are very similar for most ArduPilot-running autopilot hardware, please use the ArduPilot documentation: