PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.26k stars 13.41k forks source link

Supress disarm in manual mode (only for Fixed Wing) #20248

Open jstrebel opened 2 years ago

jstrebel commented 2 years ago

Describe the enhancement: To test the flight behavior of new fixed wing UAVs it may be necessary to perform flight maneuvers in manual mode that result in a "disarm" in the current XP4 software. This type of flight movement may be required to put the FW into critical flight conditions to determine how the aircraft is behaving. Currently, remote control is no longer possible, it results in a crash.

To Reproduce: Put the FW upside down (180° Roll). FW in going to disarm. 
 Expected behavior Insert an optional parameter so that disarm can be suppressed.

ryanjAA commented 2 years ago

I thought it wouldn’t disarm if the in air flag was valid.

jstrebel commented 2 years ago

I can not confirm this.

dagar commented 2 years ago

In the current code failure detector max roll/pitch should only be active in an attitude control mode. That means for FW manual and acro it shouldn't have triggered.

https://github.com/PX4/PX4-Autopilot/blob/0ee4d89744c7719849277befbeadc4581b2d208b/src/modules/commander/failure_detector/FailureDetector.cpp#L173-L174

What version of PX4 exactly? Was there any log to recover?

jstrebel commented 2 years ago

It was 1.13.0

ryanjAA commented 2 years ago

If I have throttle down and am in manual mode and yaw all the way to the left will this disarm? That's also relevant as well here.

ryanjAA commented 2 years ago

(or stabilized mode)

jstrebel commented 2 years ago

I think its relevant but not so important you have to remain yaw left for some seconds. May be we should put a time window (may be there is already one). It is very practical especially during setup on the bench to arm or disarm via rc stick. In actual flying there are two maneuvers where you put the yaw rudder for a few seconds. Renversement or Knive

ryanjAA commented 2 years ago

Think about landing in a crosswind - it is important as you could definitely do it. This was actually brought to my attention by a long time flyer. A parameter is the best option for this.

jstrebel commented 1 year ago

Could we consider to ARM or disARM using a separate RC channel?

jstrebel commented 1 year ago

Hi, here is the log file as promised during the conf call yesterday. Jakob Your uploaded log file is available under: https://review.px4.io/plot_app?log=fa954594-b698-49fb-a00e-c21ac760d0e9

dagar commented 1 year ago

Hi, here is the log file as promised during the conf call yesterday. Jakob Your uploaded log file is available under: https://review.px4.io/plot_app?log=fa954594-b698-49fb-a00e-c21ac760d0e9

This was disarmed automatically by the land detector.

Screenshot from 2022-10-25 12-01-16