PX4 / PX4-Autopilot

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

[Bug] Multiple loss of connection with the RC lead to crash on v1.13.2 #21920

Open Katawann opened 1 year ago

Katawann commented 1 year ago

Describe the bug

Hello,

we just had a crash yesterday with one of our hexacopter drone. The drone has lost connection with the remote control on several occasions during the flight. I don't know yet the root cause of these losses, but I wanted to point out the behavior of PX4 when a loss of connection with the RC happen.

We set up the failsafe that automatically switches to Hold mode after one second after a loss of RC. But the issue is that the consecutive loss of connection caused the drone to switch from Hold to Stabilized mode several times, making difficult to control the drone (the pilot choose the Stabilized mode, thinking there was a loss of satellites)

image

To Reproduce

Enable failsafe to Hold mode when RC loss happen

Expected behavior

Wouldn't it be safer to remain in the failsafe Flight mode once the connection with the RC has been re-established?

Screenshot / Media

No response

Flight Log

https://logs.px4.io/plot_app?log=8846a52a-eead-4e24-a30d-72c0f22f5f7c

Software Version

v1.13.2

Flight controller

Pixhawk 6C

Vehicle type

Multicopter

How are the different components wired up (including port information)

Additional context

No response

Tris2 commented 1 year ago

Hi Katawann, this is a very interesting case. I was wondering if you were able to reproduce this bug in simulation?

Katawann commented 1 year ago

Not at all... And for the moment I can not reproduce the repeated loss of connection on the real hardware of the RC. But I still think that the failsafe Flight mode once the connection with the RC has been re-established should remains the same to be safer

julianoes commented 1 year ago

rc-input

So what was the flight mode set to? Any idea why it would show Stabilized in the manual input here?

Katawann commented 1 year ago

Thank you for checking my issue.

So before 7:17 it was set to Position and starting from 7:17 the pilot switches the manual input to Stabilized and did not change it anymore after that. So PX4 switched from Loiter (failsafe when no RC) to Stabilized (mode chose by the pilot) repeatedly. image