Softivation

Drone won't arm (Pixhawk safety switch is blinking)

The drone won't arm and the safety switch keeps blinking. Here is how to check the PreArm message, the button, and the BRD_SAFETY_DEFLT setting on a Pixhawk board.

Furkan IŞIKAY 5 min read

The drone won't arm. You press ARM in Mission Planner, the autopilot refuses, and a PreArm line appears on the HUD. The LED on the Pixhawk or on the GPS module won't stop blinking.

You calibrated the compass, you have a GPS lock, the battery is full. The line mentions the safety switch.

Why the safety switch won't allow ARM

The safety switch enables and disables the motor and servo outputs. In the safe state, the autopilot disables PWM on the servo outputs and raises a pre-arm failure to prevent accidental arming.

The ArduPilot wiki explains the LED like this: intermittent blinking means the system is ready but in the safe state, solid on means the button has been pressed and the motors can move after arming.

The button isn't on top of the autopilot in every setup. In forum cases, users look for it on top of the GPS module and report that the press isn't detected.

What to do if pressing the button isn't enough

First press the button and watch the LED change from intermittent blinking to solid. If you have no button at all, you disable the safety feature with a parameter.

For systems without a switch, the wiki says BRD_SAFETY_DEFLT = 0, and the change requires a reboot. In older forum posts the same setting appears as BRD_SAFETYENABLE. In the full list, search by the BRD_SAFETY pattern, not by the exact name.

Parameter file
BRD_SAFETY_DEFLT = 0

Don't do this if you have the button: it is the only physical safeguard against accidental arming.

Example: It's your turn, the drone is on the runway, you press ARM in Mission Planner and PreArm: Hardware safety switch appears on the HUD. The button's LED is blinking intermittently. Once a teammate presses the button and tells you the LED has gone solid, the same ARM request goes through. Look at the LED before you start fiddling with parameters on the runway.

I skipped the safety check, but ARM is still refused

You can skip pre-arm checks with the ARMING_SKIPCHK parameter. In version 4.7 this parameter replaced the old ARMING_CHECK, and the checks you tick are skipped. The hardware safety switch bit carries the value 2048.

This bit only removes the PreArm line. In ArduCopter 4.7.1 a separate safety check runs at the moment of arming, and it doesn't look at ARMING_SKIPCHK. This time the line comes as Arm: Safety Switch.

The figure shows the three cases side by side. In the middle lane the request jumps over the first check but stops at the second. Only the bottom lane reaches the motors.

Where the ARM request stops in each case

The path of the ARM request in three cases: if the button wasn't pressed, it stops at the first check; with ARMING_SKIPCHK alone, it stops at the second check. If the button was pressed or BRD_SAFETY_DEFLT is 0, it goes all the way to the motors
Where to look: the middle lane. ARMING_SKIPCHK jumps over the first check, but the request still stops at the second (ArduCopter 4.7.1).

Don't assume the motors will spin just because it armed.
If Mission Planner shows ARMED but the motors don't spin, look at the LED. If it's blinking intermittently, the outputs are still locked.

How to check on your own board

You read the problem on your own board over USB. The code below reads three parameters, sends one ARM request, and prints the messages that come back. Remove the propellers before running it.

Python
from pymavlink import mavutil
import time

m = mavutil.mavlink_connection("COM5", baud=115200)  # Linux: "/dev/ttyACM0"
m.wait_heartbeat()

for ad in ("BRD_SAFETY_DEFLT", "BRD_SAFETYOPTION", "ARMING_SKIPCHK"):
    m.mav.param_request_read_send(m.target_system, m.target_component, ad.encode(), -1)
    p = m.recv_match(type="PARAM_VALUE", blocking=True, timeout=3)
    print(ad, "=", p.param_value if p and p.param_id == ad else "not in list")

# ARM request (remove the propellers)
m.mav.command_long_send(m.target_system, m.target_component, 400, 0, 1, 0, 0, 0, 0, 0, 0)
bitis = time.time() + 4
while time.time() < bitis:
    t = m.recv_match(type="STATUSTEXT", blocking=True, timeout=1)
    if t:
        print(t.text)

A line in the output saying a parameter is not in the list means that parameter isn't available on your board. ARMING_SKIPCHK doesn't exist before 4.7 anyway. If BRD_SAFETY_DEFLT itself is missing, one user reported exactly that on a Cube Orange running Rover 4.5.7. Don't draw conclusions before pulling the BRD_ pattern from the full list again.

Error Messages and Their Meanings

The message texts come from the AP_Arming.cpp and AP_Arming_Copter.cpp files, at the ArduCopter 4.7.1 tag.

PreArm: Hardware safety switch

You're in the safe state and the pre-arm gate blocks ARM. Press the button or set BRD_SAFETY_DEFLT = 0. Bit 2048 of ARMING_SKIPCHK removes this line.

Arm: Hardware safety switch

The same check, this time tripping during the ARM request. The fix is the same.

Arm: Safety Switch

ArduCopter 4.7.1's arm-time check. ARMING_SKIPCHK doesn't skip it. The fix is the same.

If you want to see the decision order and the log signature line by line

We cover the decision order of this error in the source code, its log signature, the differences between versions, and its PX4 equivalent as a lesson in the Drone Basics: From Sensors to Flight course.

Was this article helpful?

Free resourcePixhawk and ArduPilot error message glossaryThe 2 messages in this article and similar ones are in the glossary: what they mean, why they appear, what to check first.