Betaflight
Connect the module using the integration guide. Use a Betaflight build with GPS support and, if using the compass, magnetometer support. Save a configuration backup before changing settings. Remove propellers for bench setup.
GPS setup
- Open the Betaflight App and connect to the flight controller.
- In Ports, select GPS under Sensor Input for the UART connected to the module, then save and reboot.
- Enable GPS in Configuration → Other Features, then save and reboot. The exact location can vary with the app and firmware release.
- Open the GPS settings, select UBLOX, and enable Auto Config. Save the changes.
- With a clear sky view, check receiver communication, satellite count, and fix status in the GPS tab.
Use the Betaflight GPS tab guide and Ports guide for the interface in your release. Follow the selected baud/automatic baud settings supported by that release rather than assuming a fixed factory baud rate.
Compass detection
Connect SCL and SDA as well as the UART and power connections. Betaflight's LIS2MDL driver also handles the IIS2MDC. A driver or detected sensor may therefore be labeled LIS2MDL.
Check that the magnetometer is detected before attempting calibration. If GPS works but the compass is missing, inspect I²C wiring and confirm the flight-controller firmware includes the magnetometer driver.
Magnetometer orientation
Betaflight's magnetometer driver reverses the sensor's X axis. To align the MW SAM-M10Q GPS Mini with Betaflight's forward (+X) direction, mount it with the connector facing the front of the vehicle and the antenna facing upward.
Keep the module away from magnetic interference. If you mount it in a different orientation, adjust magnetometer alignment to match. Calibrate and check heading before using compass data:
- Secure the board and set magnetometer alignment for its actual installed orientation using the settings available in your Betaflight release.
- Run compass calibration in a location away from magnetic interference.
- Check displayed heading against the vehicle's known direction, then turn the vehicle through a full circle. Heading should follow the turn consistently.
- Tilt the vehicle in pitch and roll and check that the heading remains sensible for the direction it is pointing.
If the heading is reversed, offset, or changes incorrectly with tilt, resolve the alignment and recalibrate. Do not change flight-controller gyro/accelerometer alignment to compensate for an external compass mounting error.
GPS features
GPS setup provides receiver data to Betaflight. Configure OSD and any GPS Rescue settings separately using the Betaflight GPS guide. Completing these connection steps does not configure or validate a rescue procedure.