inav icon indicating copy to clipboard operation
inav copied to clipboard

Add Prearm mode

Open heikobischoff opened this issue 6 years ago • 18 comments

Current Behavior

The vehicle will arm after entering the arm mode.

Desired Behavior

The arming process should be staged. The arm switch will not work before a pre-arm switch has been activated. This will help to prevent accidentally arming the vehicle.

Suggested Solution

Adding a new pre-arm mode to the software. The arm mode must have a dependence on the pre-arm mode. After arming, the vehicle should stay armed after deactivating the pre-arm mode. This is helpful to get the possibility to put the pre-arm mode to a momentary switch.

Who does this impact? Who is this for?

All users who want to add a piece of security to the hobby. Rotating propellers can be very dangerous.

heikobischoff avatar Apr 14 '20 21:04 heikobischoff

This can be implemented on your radio TX if this is really needed. I don't think this adds more security, but we may consider this if the demand is significant.

digitalentity avatar Apr 15 '20 09:04 digitalentity

Personally, I don’t think it’s needed. This can be set up in the Tx if your really want it. INAV also has safety conditions that must be met before you can arm.

MrD-RC avatar Apr 20 '20 20:04 MrD-RC

Please add it. A lot of people are use to it. I just installed inav now, and it's really only missing that :)

aleksandarmilacic avatar Jul 08 '20 23:07 aleksandarmilacic

I almost cut myself (or worse) today as I was attempting to disconnect the battery from my 7 inch drone after a flight. While having difficulty removing the battery plug, I accidentally hit the Arm button on my controller, which I was holding because I didn't want to place it into the mud beneath me. The props started up and I just dropped the drone into the mud rather than chance losing a digit. My BetaFlight drones all use the push button on my controller for PreArm and I depend on it, but INAV doesn't yet support that. Please, Please PLEASE add this feature! It is likely an easy coding to implement and greatly improves safety. Thanks much!

jerryt1 avatar Sep 29 '20 19:09 jerryt1

I always rise the throttle stick before getting close to my quads when I have the radio with me. Easy and effective fix preventing arming

giacomo892 avatar Sep 30 '20 06:09 giacomo892

That's an excellent suggestion! I don't feel it replaces the much greater safety provided by adding the PreArm Mode to INAV, but it is another good method to enhance our safety. Having PreArm is an even more important when its my 10 inch quad! I carry my controller when going after a drone that has come down unexpectedly, such as because I caught a small branch I didn't see until the last moment or a failure of a part, such as a motor. Once a quad is lost, we're often in for a search. With my controller, I can turn the beeper on every time I need a new "fix" and display the latitude and longitude on the screen to find the search area, etc.

Another suggestion made was to implement this function in the controller. I'm and engineer and code developer, I can do that. But it's certainly not going to be as usable to newer or non-technical pilots. Conversely, everyone building/configuring quads must learn how to add and modify Modes, so adding PreArm makes the safety feature easily available to all pilots.

I'm going to try to remember your great suggestion - thanks!

jerryt1 avatar Sep 30 '20 12:09 jerryt1

Please implement this. With software pre-arm you can use a button instead of a switch. Very handy with like the TBS Tango 2 that doesnt have a lot of switches.

Redeque avatar Oct 16 '20 13:10 Redeque

I am using a DJI remote and I have no possibility to set a pre arm on the remote and I have to rely on a software solution.

heikobischoff avatar Oct 26 '20 11:10 heikobischoff

really need this! plz implement it

chr0mcom avatar Nov 22 '20 10:11 chr0mcom

Just opened a PR for this. I think it's a really important safety feature. Please could people who want this feature test out my branch?

harryjph avatar Feb 03 '21 02:02 harryjph

do u have a hex file for testing?

chr0mcom avatar Feb 03 '21 11:02 chr0mcom

@harry1453 Can you explain how this feature works? I'm interested to test it but I'm not familiar with the concept of pre-arm.

avsaase avatar Feb 03 '21 12:02 avsaase

@avsaase Basically, if you have a prearm mode setup, you need to arm in two stages:

  1. Activate prearm (normally a button or momentary switch)
  2. Activate arm

If you don't arm in that order (eg. you arm then press prearm, or arm without prearm) the aircraft won't arm. It's a safety feature to prevent accidentally bumping the arm switch and chopping your fingers off.

harryjph avatar Feb 03 '21 17:02 harryjph

@chr0mcom hold on, I'll prepare them now that I've made some changes to the PR

harryjph avatar Feb 03 '21 20:02 harryjph

@chr0mcom Actually, you can get the hex files from the CI artifacts:

https://github.com/iNavFlight/inav/suites/1962527221/artifacts/38930241

harryjph avatar Feb 04 '21 00:02 harryjph

im looking for a inav configurator which is working with the 2.7 firmware... :/

chr0mcom avatar Feb 08 '21 23:02 chr0mcom

im looking for a inav configurator which is working with the 2.7 firmware... :/

http://seyrsnys.myzen.co.uk/inav-configurator-next/

stronnag avatar Feb 09 '21 06:02 stronnag

#6562 Has been merged, I think this can be closed.

harryjph avatar Feb 28 '21 17:02 harryjph