Accurate GPS and compass configuration is the foundation of INAV's navigation engine. Follow this guide to get fast 25+ satellite locks with Ublox M10 and rock-solid Position Hold.
1. Wiring GPS + Compass to Flight Controller
- GPS TX → FC UART RX
- GPS RX → FC UART TX
- GPS 5V / GND → FC 4V5 (USB powered) or 5V / GND
- Compass SDA → FC I2C SDA
- Compass SCL → FC I2C SCL
2. Recommended CLI Settings for Ublox M8 / M10
set gps_provider = UBLOX
set gps_ublox_use_galileo = ON
set gps_sbas_mode = EGNOS
set mag_hardware = AUTO
save
Frequently Asked Questions (FAQ)
Do I need a compass (magnetometer) for INAV?
Multirotors require a compass for Position Hold, RTH, and Waypoints. Fixed-wing airplanes do NOT need a compass because INAV calculates heading from GPS ground course while moving.
Why is my drone toilet-bowling in Position Hold?
Toilet-bowling is caused by incorrect compass alignment (cw270flip, cw180flip, etc.), magnetic interference from battery power leads, or incomplete 3D compass calibration.