Skip to main content

ArduPilot

Connect the module using the integration guide. GNSS communication uses UART, while the IIS2MDC compass needs the SCL/SDA connection. Save the controller's parameters before making changes.

Firmware and compass driver​

The IIS2MDC compass driver is supported in ArduPilot 4.7.2 and later. For older releases from 4.6.0 through 4.7.1, enable the driver in a custom firmware build.

ArduPilot versionCompass setup
4.7.2 and laterUse firmware for your flight-controller target with IIS2MDC support.
4.6.0–4.7.1Build custom firmware with Compass → IIS2MDC compasses enabled.

For a custom build, use the ArduPilot Custom Firmware Builder, select your controller and firmware version, and enable Compass → IIS2MDC compasses. Back up your parameters before installing the resulting firmware.

GNSS setup​

  1. Connect to Mission Planner or your preferred ArduPilot ground station.
  2. Identify the controller's logical serial port connected to the module. Use its hardware documentation to map the physical connector to SERIALx.
  3. Set SERIALx_PROTOCOL = 5 (GPS) for that port. Replace x with the actual serial-port number; do not assume the GPS connector uses SERIAL1.
  4. Reboot and check that the receiver is detected and reports satellites and a fix outdoors.

See the ArduPilot serial parameter reference for your vehicle firmware. If the receiver is absent, check RX/TX pairing, power, port selection, and the configured GPS type before changing receiver settings.

Compass orientation and calibration​

  1. Mount the module securely and verify the flight controller's orientation setting.
  2. Complete accelerometer calibration before compass calibration.
  3. Confirm that the external IIS2MDC compass is detected in the compass setup screen.
  4. Perform normal onboard compass calibration, with automatic external compass orientation detection enabled through COMPASS_AUTO_ROT.
  5. Review the detected orientation and check heading while turning and tilting the vehicle.

ArduPilot's normal compass calibration can determine the external compass rotation. Its advanced compass setup guide explains automatic orientation and its limitations. In-flight and large-vehicle calibration do not perform the same automatic orientation step.

Use the detected orientation for your installation and verify it with the heading checks above. If a manual COMPASS_ORIENT correction is needed, follow the advanced compass setup guide for your firmware release.

Final checks​

Verify GNSS reception and compass detection separately. A valid GPS fix does not confirm that the compass is connected. Resolve calibration and compass-consistency errors before using position-dependent flight modes.