← All tools

Message & Error Explainer

What an ArduPilot message means and what to do about it

Українська

ArduPilot's main GPS slot is empty

Stops itGPS

What ArduPilot says:

ArduPilot is using the GPS slot with that number as its main receiver, but the slot's type is 0 (none). This happens when the only receiver is set up as the second GPS (GPS2_TYPE) while GPS1_TYPE is 0 and GPS_AUTO_SWITCH is 0: with switching off, ArduPilot stays on the receiver GPS_PRIMARY names, and that one is not there.

What to do, most likely first

  1. The receiver is configured in the second slot only.

    FixMake it the first GPS: GPS1_TYPE to its type, GPS2_TYPE 0, then reboot. A serial receiver stays on its port: the first GPS that needs one takes the first port with SERIALn_PROTOCOL 5.

  2. GPS_PRIMARY points at the slot that is not in use.

    FixSet GPS_PRIMARY to the receiver that exists (0 first, 1 second), or set GPS_AUTO_SWITCH to 1 so that ArduPilot picks the receiver with the best fix.

Parameters to look at

ParameterWhat it is
GPS1_TYPEGPS type
GPS2_TYPEGPS type
GPS_AUTO_SWITCHAutomatic Switchover Setting
GPS_PRIMARYPrimary GPS
The code that sends it

PreArm: GPS N: primary but TYPE 0

libraries/AP_Arming/AP_Arming.cpp AP_Arming::gps_checks() · Open in ArduPilot Copter-4.7.1

Written here for Copter 4.6. In the tool you choose your vehicle and version, see your own parameter values beside the ones named here, and drop a flight log to have every message in it explained.

Open it in the Message & Error Explainer