inav icon indicating copy to clipboard operation
inav copied to clipboard

Disarm without reason in mid air

Open Antiheld86 opened this issue 8 years ago • 67 comments

Board and Version

version

INAV/MATEKF722 1.9.1 Mar 23 2018 / 21:15:18 (c60386f9)

Behavior

I had my second flight with my new quarcopter build. While in 3D hold which worked nice, just a bit wobbly the quad disarmed without any reason i can see in 13m height with throttle 40%. The log says it Arm = off / Heading hold = on. I did not switch any mode while it happend. Before i already had a good first flight trying failsafe and RTH with no Problems.

TX: Taranis X9D RX: X8R with smartport telemetry

Blackbox logs/Config (.ZIP) where problem occurs

log fall out.zip dump.zip

Log and dump attached. In the dump are no NavModes configured because the Crash cutted one wire of the Magnetometer so These modes got disabled because of Hardware fault.

Is there any way to see in the log what gave the command to Switch modes?

I also ask myself where the Option is that disarm is not possible when throttle is not down.

Antiheld86 avatar Mar 29 '18 14:03 Antiheld86

If my quad fell out of the sky with this much movement in the AH whilst doozing around in PH at < 3m/s and RSSI dropping < 20% at 14m from home, would one:

  • Blame the firmware; or
  • Fix the hardware

Tough choice.

https://vimeo.com/262424703

stronnag avatar Mar 29 '18 17:03 stronnag

I'm pretty aware about the fact that my quad is not perfectly configured. And i dont know why the rssi dropped before. But i already tried the failsafe and the rth and it performed well enough. But the log says that something disabled arm and enabled headless. And it was not me. So i would like to know what it was. I am new to this stuff and i am willing to think about that it was a failure of my configuration. But the last thing the Firmware should do, is to disarm and let it drop out of the sky. What i know is, that the failsaife wouldn't do that. And that if the rx Signal is lost, the failsafe should snap in. But that obviously did not happen.

The big movements in this Flight were given by my Input. After that i let it stay in one Position and it Held the position quiet well. But it was shaking al lot. i waited if it stabilised again without any Input. After a few seconds of waiting it disarmed.

It is very difficult to optimise PIDs or something to get flight behavior nicer if you are afraid that it just disarms because of - you don't know....

Antiheld86 avatar Mar 29 '18 18:03 Antiheld86

@Antiheld86 What is your receiver failsafe mode set to ? You should set it to "no pulses".

shellixyz avatar Mar 29 '18 18:03 shellixyz

It is set to "hold". But i don't think the Signal was lost. I could give commands all the time.

Antiheld86 avatar Mar 29 '18 18:03 Antiheld86

The disarm reason in your flight log is SWITCH so it looks like the FC has been disarmed by the ARM flight mode for some reason. And the reason must be that the channel controlling the ARM flight mode value got out of the set range.

shellixyz avatar Mar 29 '18 18:03 shellixyz

I don't understand why that whould be. I could not find the reason in the log. Where do i find it? The strange thing about that is, that my Arm mode is on channel 9 and headless is on channel 14. Level, AltHold, PosHold and RTH are on Channel 10 with Logical Switches. But obviosly just channel 9 an 14 changed. Is it possible to see the channel values in the log?

Antiheld86 avatar Mar 29 '18 19:03 Antiheld86

The disarm reason is recorded at the very end of the log. It is not displayed by the blackbox viewer. You need to open the file with a text editor. At the end of the log you will see "End of log (disarm reason:4)". 4 is disarm by switch.

typedef enum disarmReason_e {
    DISARM_NONE         = 0,
    DISARM_TIMEOUT      = 1,
    DISARM_STICKS       = 2,
    DISARM_SWITCH_3D    = 3,
    DISARM_SWITCH       = 4,
    DISARM_KILLSWITCH   = 5,
    DISARM_FAILSAFE     = 6,
    DISARM_NAVIGATION   = 7,
    DISARM_REASON_COUNT
} disarmReason_t;

Only the 4 first channels (thr/roll/pitch/yaw) are recorded in the log (rcData).

shellixyz avatar Mar 29 '18 20:03 shellixyz

I had the disarm_kill_switch=off, so it should not have been able to disarm, am i right?

Antiheld86 avatar Mar 29 '18 22:03 Antiheld86

Right, not if the throttle channel never went below min_check

shellixyz avatar Mar 29 '18 22:03 shellixyz

Actually i was wrong, the CLI say disarm_kill_switch = ON even though it is not enabled in the gui in the failsafe tab... cli gui

Antiheld86 avatar Mar 30 '18 08:03 Antiheld86

I think there is a bug with the disarm_kill_switch feature. In the gui it is disabled no matter what i do. I can't eneble it in the gui. By Default disarm_kill_switch = ON in the CLI. I can disable it there. Enabling it in the CLI still leaves it disabled in the gui. So one reason my quad dropped is that it disarmed because of disarm_kill_switch = on even though it was disabled in the gui. Still don't know why the arm channel would Change.

Antiheld86 avatar Mar 30 '18 08:03 Antiheld86

disarm_kill_switch is no longer available in the configurator for safety reasons, you need to set it in the CLI. In most setups, you shouldn’t need to fiddle with that.

fiam avatar Mar 30 '18 09:03 fiam

use this tool to check your INAV config https://github.com/sincoder/inav_checker.git ,maybe helpful

sin5678 avatar Mar 30 '18 09:03 sin5678

@stronnag just a little off topic ... but what tool was that you used to visualise the dump?

Pairan avatar Mar 30 '18 10:03 Pairan

@Pairan mwp https://github.com/stronnag/mwptools

stronnag avatar Mar 30 '18 10:03 stronnag

thanks, mate :)

Pairan avatar Mar 30 '18 10:03 Pairan

@fiam thanks for the clear up. It was explained different by @shellixyz in #2983

Antiheld86 avatar Mar 30 '18 16:03 Antiheld86

@Antiheld86 Oops sorry for that.

shellixyz avatar Mar 30 '18 21:03 shellixyz

Thank you for your help anyway.

Antiheld86 avatar Mar 30 '18 21:03 Antiheld86

@Antiheld86 My pleasure. I'm the one who removed it from the configurator, so you can blame me for that :-).

We discussed this a bit and we thought that it was too easy for users to toggle it OFF accidentally or without understanding what it did. Betaflight completely removed the feature, but for INAV we decided to just hide it from the configurator and see how users react.

While for this specific case disabling disarm_kill_switch is a valid workaround, we definitely need to get to the bottom of this problem and either fix it or determine with reasonable certainty that the problem comes from the receivers (and maybe workaround it, if possible). Previous reports of this problem were all when using R9M RXs, so it looked like a bug in them. However, your report is the first one using another model of RX, so we'll keep an eye on this from now on.

fiam avatar Mar 30 '18 23:03 fiam