Disarm in flight and emergency stop feature

I’d like to better understand the disarm and emergency stop functions of ArduPilot.

Both can be set up using the RCn_OPTION parameter for specific RC channels:

31 - Motor Emergency Stop
153 - ArmDisarm (4.2 and higher)

The questions I have are:

Does the disarm function work while the drone is in flight? This would necessitate some careful switch settings to avoid accidental operation.

If so, what is the purpose of the emergency stop function? Would a disarm state not always stop the motors?

No, it does not.

To stop all the motors immediately even during flight.

1 Like

If you set a disarm switch it will disarm in-flight entering the famous “rapid return to earth” mode. You can test that in the Simulator. Switch Arming is best used for Rovers :slight_smile:

3 Likes

That’s two conflicting answers. :thinking:

I’ve tried forcing a disarm in the simulator via Mission Planner Actions, and it disarms in flight. But don’t know how to simulate flicking a switch to test the ArmDisarm RCn_OPTION parameter.

AUX Function tab. Assign one, get it flying and hit Low and see what happens.

Crash

1 Like

Thanks for the tip. It did indeed fall from the (simulated) sky.

@amilcarlucas could you be wrong about this?

Yes, I could be wrong about this.

I did some more simulator tests to establish what the different stop/arm/disarm functions do, and have established the following. Please correct me if I’m mistaken about any of this.

Emergency stop: Immediately kills motors, drone remains armed and will come back to life if emergency stop is disengaged. If drone is disarmed, prevents arming via pre-arm checks.
Disarm: Disarms drone, stopping motors, requires pre-arm checks to pass before re-arming

:exclamation: Both functions work in flight.

RCn_OPTION Name Low High Notes
31 Motor Emergency Stop Motors run normally Kills motors See above for interactions with armed/disarmed state
32 Motor Interlock For helicopters, not relevant to multicopters
41, 153, 154 ArmDisarm (various types) Disarms drone Arms drone Can disarm in flight
81 Disarm Nothing Disarms drone Will not rearm
165 Arm/Emergency Motor Stop Kills motors Arms drone Does not disarm

Disarm will work in flight. Working with students I’ve seen it happen. It doesn’t end well. As a result I use the Arm/Emergency Stop function, that way if a switch is accidentally triggered in flight there is a slight chance it can be reactivated before the planet smashes into the drone. You just need to remember that when you land and flip the switch the drone doesn’t disarm right away, it takes a few seconds.

1 Like

Check through this thread too

I found it was particularly difficult (or impossible) to disarm in flight unless you have an arm/disarm switch with no “interlock”.
Also the emergency motor stop can be reverted and the copter could still potentially recover and fly, but disarm cannot be recovered from.

The other oddity that I’ve seen come up is the RTL Final Altitude - where the copter does an RTL for some reason then descends to a specified altitude and waits. The caveat is if the RTL is triggered by RC failsafe then the final altitude is ignored and the copter proceeds to land. The assumption would be that since there was an RC failsafe you may have no control, and the copter could be stuck at the final altitude until the battery voltage goes below Low or Critical level, so instead of waiting it should just land.

So from my point of view it’s important to have

  1. battery failsafes fully configured correctly
  2. arm/disarm requires two actions, like a second switch or 0% throttle (configured in the radio)
  3. disarm and emergency motor stop all tested (on the ground)
  4. RTL and settings all tested
  5. a spring-centred throttle (at least for multirotors)

In my experience emergency stop disarm only works in copter AFAIK. Plane won’t disarm even on prolonged emergency stop.

1 Like

Yes, plane is different. I’m still trying to get my head wrapped around VTOL because it’s a bit of a mixed bag.

One interesting thing here it that for ELRS it is required to arm using a switch and there are explanations why in the docs. I do not like it but use a switch which is reversed i e I arm by flopping the switch to off.

I would much prefer using the emergency motor feature because of the possibility to immediately revert to flying but if I have understood the ELRS docs/forums right only arm/disarm is correct.

I have seen info about using a dummy function in the transmitter to avoid the switch but do not remember the setup. I certainly would be grateful for any comments about the ELRS switch requirements.

Disarm definitely works in flight. I accidentally enabled it in GUIDED mode and it definitely worked. :frowning:

I think you need to supply a magic number in that case to disarm.

ELRS just needs to see a low/high on channel 5. So if you use Arm/Emergency stop on channel 5 that will satisfy ELRS, without the worry of inflight disarming. Once the drone is landed and motors are stopped, it will disarm in a few seconds on the ground.

Thanks for the info. I guess the info have been changed now because it was very specific about arm/disarm previously.

If there’s something in the Ardupilot wiki about it, please share the link and we’ll fix it.

I don’t think the ArduPilot wiki calls out Ch5 as adamantly as the ExpressLRS documentation does. It’s not technically incorrect for them to be so specific, but with some experience and practical knowledge, Ch5 can be repurposed successfully and still satisfy the ELRS intent as you suggest.

1 Like

My reference was to the docs of ELRS and some discussions from an ELRS developer I read.quite some time ago. I should have mentioned the source better, sorry.

1 Like