An APM flight controller with GPS is a complete autopilot system for RC planes, multirotors, and other model aircraft, giving you stabilized flight, autonomous navigation, and return-to-launch capability. The APM (ArduPilot Mega) is an open-source autopilot that uses a GPS module to know its position, altitude, and speed, so it can fly waypoint missions or bring the model home if the radio link fails. This page explains what you get with an APM and GPS, how to wire and configure them, and what to check before your first flight.
What the APM and GPS Do Together
The APM flight controller is the brain of the model. It reads sensors—gyros, accelerometers, and a barometer—to keep the aircraft level and stable. The GPS module adds position and movement data, which lets the autopilot do things like hold a position, fly a pre-planned route, or return to a home point you set before launch.
Without GPS, the APM still stabilizes the model and can do basic attitude control, but it cannot navigate. With GPS, you get the full set of autonomous modes: loiter (hold position), auto (fly waypoints), and RTL (return to launch). Many pilots start with just the flight controller for manual and stabilized flying, then add GPS later for the safety net of RTL.
Choosing a GPS Module for Your APM
GPS modules come in different sizes and with different features. For APM, you need a module that speaks the right protocol—usually UART or I2C—and has a compatible connector. The most common choice is a u-blox-based module with a ceramic patch antenna and a small backup battery to keep the satellite almanac when the main power is off.
Look for a module with a clear view of the sky. The antenna should be mounted on top of the aircraft, away from carbon fiber, metal, or the flight battery, which can block signals. Some modules have a built-in compass; if yours does, mount it away from power wires and motors to avoid magnetic interference.
Check the connector type on your APM board. Many APM clones use a six-pin GPS port, but some use a four-pin or require an adapter. The module’s documentation will tell you which pins carry power, ground, TX, and RX. Match those to the APM’s GPS port, and double-check the wiring before powering up.
Wiring the GPS to the APM
Wiring is straightforward but needs care. Connect the GPS module’s TX (transmit) to the APM’s RX (receive) pin, and the GPS RX to the APM TX. Power and ground go to the corresponding pins. If the GPS has a compass, it usually connects through the I2C port instead of the UART, so read the module’s pinout carefully.
On many APM boards, the GPS port is labeled clearly. If not, the board’s manual will show the pin layout. Use a magnifier if needed—the pins are small. After connecting, power the APM with a USB cable or a battery and check the LED on the GPS. A blinking light often means it is searching for satellites; a solid light means it has a fix. The exact pattern depends on the module, so check its manual.
Configuring the APM in Mission Planner
Mission Planner is the ground control software used with APM. Connect the APM to your computer with a USB cable, and open Mission Planner. Go to the Setup tab, then the Mandatory Hardware section. Here you will calibrate the accelerometer, compass, and radio, and set the frame type. The GPS needs no calibration, but you must verify that it is detected.
On the Setup > Mandatory Hardware > GPS page, you should see the number of satellites and your current latitude and longitude once the GPS has a fix. If you see zeros or “no GPS,” check the wiring and the baud rate. APM boards often expect GPS at a specific baud rate, like 38400 or 115200, and the module must be set to match. Some modules have a configuration tool; others are pre-set. The APM can auto-detect many GPS units, but if not, you may need to set the baud rate in Mission Planner’s terminal or config screen.
After GPS is recognized, set your home location. Mission Planner will use the current position as home when you arm the model, or you can set it manually. Make sure the GPS has a solid 3D fix before arming—at least a handful of satellites. The number of satellites needed varies, but more is better for accuracy.
Testing and First Flight Checks
Before flying, test the GPS in a clear outdoor area. With the model on the ground and the APM powered, watch the satellite count in Mission Planner. It should climb as the GPS locks on. Once you have a fix, check that the compass heading reads correctly by rotating the model. If the heading is off, do a compass calibration in Mission Planner, and make sure the compass is not near magnets or power wires.
Then, do a bench test of the autopilot modes. With the model safely secured, switch to Loiter mode and see if the APM tries to hold position. It will move the servos or motors to correct for drift. If it reacts correctly, you are ready for a test flight. Start in a stabilized mode like Stabilize or AltHold, get comfortable, then try Loiter and RTL at a safe altitude.
One common mistake is flying before the GPS has a good fix. Wait until the satellite count is stable and the position on the map matches where you are. Also, make sure the home point is set correctly—if you move the model after power-up, the home may be wrong. Some pilots set home manually in Mission Planner after placing the model at the takeoff spot.
What to Do If GPS Does Not Work
If the GPS never gets a fix, move to an open area away from buildings and trees. Give it a few minutes—cold starts can take a while. Check that the antenna is facing up and not covered by anything. If the module has a backup battery, make sure it is charged; a dead battery means a longer cold start each time.
If the APM does not see the GPS at all, check the wiring again. Swap TX and RX if you are unsure—it is a common mix-up. Also verify that the GPS is powered; some modules have a small LED that lights up. If you are using a clone APM, the port order might differ from the original, so consult the board’s manual.
If the compass is not working, redo the calibration in a clean area, away from metal tables or concrete with rebar. Sometimes the compass needs to be moved farther from power wires. Test on a spare part or a non-metallic stand if needed.
Safety and Maintenance Notes
Always follow the safety notes below for handling batteries, soldering, and any chemicals. Keep the GPS antenna clean and free of debris. Check the connector pins for corrosion or loose fits before each flight. Store the model with the GPS antenna protected, as a bent or broken antenna will degrade performance.
Remember that rules for flying model aircraft differ by country, so check your national aviation regulator for where you can fly. Never fly beyond your line of sight, and always have a plan for what the model will do if the GPS signal is lost—most autopilots will fall back to a failsafe, but you should know what yours does. See the safety notes below for more.