A configured GPS has never answered
What ArduPilot says:
- GPS N: was not found
A GPS slot has a type set (GPSn_TYPE not 0), but no receiver has been recognised on it since power-on, so arming is refused. For a serial GPS ArduPilot keeps trying each speed in turn, 4800 to 460800 baud, 1.2 s each. With automatic configuration on (the default) a u-blox module is recognised only at 230400 baud, the speed ArduPilot itself switches it to: the flight controller must be able to talk to the module, not only listen to it.
What to do, most likely first
TX and RX are swapped, or only one of the two data wires is connected.
CheckThe GPS's TX goes to the flight controller's RX, and its RX to the flight controller's TX. A lit LED on the module shows that it has power, nothing more.
FixCorrect the wiring; the Board & Wiring Planner shows which pads belong to which UART.
The serial port the GPS is wired to is not set to GPS.
CheckThat port's
SERIALn_PROTOCOLmust be 5. The first serial GPS takes the first port set to 5, a second GPS the second.FixSet it to 5 and reboot.
A second GPS is configured but not fitted.
CheckThe message says GPS 2.
FixSet
GPS2_TYPEto 0 and reboot.The type does not match the receiver, or a CAN receiver has no CAN bus to talk on.
CheckA DroneCAN GPS needs
GPS1_TYPE9 together withCAN_P1_DRIVER1 andCAN_D1_PROTOCOL1. A serial u-blox module works with 1 (auto) or 2.FixSet the type that matches and reboot.
The module is not a u-blox and speaks plain NMEA, which auto-detection does not look for.
Check
GPS1_TYPE1 (auto) never selects NMEA.FixSet
GPS1_TYPEto 5 (NMEA) and reboot. Expect less from such a receiver: ArduPilot cannot set its update rate.
Parameters to look at
| Parameter | What it is |
|---|---|
GPS1_TYPE | GPS type |
GPS2_TYPE | GPS type |
SERIAL3_PROTOCOL | Serial 3 (GPS) protocol selection |
SERIAL4_PROTOCOL | Serial4 protocol selection |
GPS_AUTO_CONFIG | Automatic GPS configuration |
GPS_DRV_OPTIONS | driver options |
CAN_P1_DRIVER | Index of virtual driver to be used with physical CAN interface |
CAN_D1_PROTOCOL | Enable use of specific protocol over virtual driver |
Where to do it:Board & Wiring PlannerSetup & Tuning Guide
The code that sends it
GPS N: was not found
libraries/AP_GPS/AP_GPS.cpp AP_GPS::broadcast_first_configuration_failure_reason() · Open in ArduPilot Copter-4.7.1