liftbag

  • *****
  • 215
    • LibrePilot
AlwaysStabilizeWhenArmed cautions
« on: December 30, 2015, 10:41:14 pm »
As many of you know, RS2K have added AlwaysStabilizeWhenArmed in betaflight naming it Airmode. He already added this feature in OP 15.05.

AlwaysStabilizeWhenArmed is self-explanatory, the control loop is always active, even with throttle below zero and motors in idle.
You can enable the feature by setting "True" System > Settings > FlightModeSettings > AlwaysStabilizeWhenArmed.

This is useful to maintain the multicopter control on all occasions that require zero throttle, such as a quick altitude loss to center the gate, or when you stop a flip in the inverted position for a long time.

AlwaysStabilizeWhenArmed works perfectly, but needs a safety feature that will be available in the next release, and early in the next beta.
Everyone using a combination of stick to arm/disarm the motors cannot use AlwaysStabilizeWhenArmed, because arming/disarming is understood as a command, and may overturn multicopter on the ground.
Currently only those using a switch on an accessory channel to arm/disarm can safely use AlwaysStabilizeWhenArmed.

In the next release AlwaysStabilizeWhenArmed will be activated from the gui (Output tab).
In addition, those who use the stick combination to arm/disarm, can disable AlwaysStabilizeWhenArmed in Flight mode switch position (input tab) so to have a fligh mode safe for takeoff and landing.
« Last Edit: December 31, 2015, 03:39:44 pm by liftbag »

telnoi

  • *
  • 14
Re: AlwaysStabilizeWhenArmed cautions
« Reply #1 on: January 18, 2016, 08:44:15 pm »
I may be misunderstanding how this feature works (doing a ground test), but should the motors respond to angle changes when throttle is zero when armed?

Currently, they do not with ''AlwaysStabilizeWhenArmed'' set to ''True.''
With ''motors spin at neutral output when armed and throttle below zero'' enabled, there are also no changes to RPM when changing the quad angle.
« Last Edit: January 18, 2016, 08:52:43 pm by telnoi »

f5soh

  • *****
  • 3695
    • LibrePilot
Re: AlwaysStabilizeWhenArmed cautions
« Reply #2 on: January 18, 2016, 09:05:29 pm »
I may be misunderstanding how this feature works (doing a ground test), but should the motors respond to angle changes when throttle is zero when armed?

Yes, and that pretty dangerous currently.

Output tab: Motors spin at neutral checked
UAVO Browser: ''AlwaysStabilizeWhenArmed'' set to ''True.''

Just after board is armed, motors spin and are reactive while the Throttle is 0.

telnoi

  • *
  • 14
Re: AlwaysStabilizeWhenArmed cautions
« Reply #3 on: January 18, 2016, 09:10:23 pm »
Both options have been set to true, but the motors are not reactive at 0 throttle. They remain idle (ESC calibration 1030).
They become reactive only after slightly increasing throttle/same behaviour as default.

What could be causing this?
« Last Edit: January 18, 2016, 09:14:28 pm by telnoi »

f5soh

  • *****
  • 3695
    • LibrePilot
Re: AlwaysStabilizeWhenArmed cautions
« Reply #4 on: January 18, 2016, 09:14:26 pm »
Motors currently spin just after armed ?

telnoi

  • *
  • 14
Re: AlwaysStabilizeWhenArmed cautions
« Reply #5 on: January 18, 2016, 09:14:37 pm »
yes, but they don't react to angle changes.
Edit: is this acro + only? I have been flying rate so far.
« Last Edit: January 18, 2016, 09:18:46 pm by telnoi »

f5soh

  • *****
  • 3695
    • LibrePilot
Re: AlwaysStabilizeWhenArmed cautions
« Reply #6 on: January 18, 2016, 09:19:21 pm »
Strange...

I have currently my quad setup like that and it works perfectly.
The "AlwaysStabilizeWhenArmed" is really saved using the button ?



liftbag

  • *****
  • 215
    • LibrePilot
Re: AlwaysStabilizeWhenArmed cautions
« Reply #7 on: January 18, 2016, 09:24:19 pm »
Same here, it works flawless.

f5soh

  • *****
  • 3695
    • LibrePilot
Re: AlwaysStabilizeWhenArmed cautions
« Reply #8 on: January 18, 2016, 09:26:01 pm »
is this acro + only? I have been flying rate so far.

There is no limitation with stabilization modes.

Please post your config file: File > Export UAV settings...

telnoi

  • *
  • 14
Re: AlwaysStabilizeWhenArmed cautions
« Reply #9 on: January 18, 2016, 09:28:02 pm »
Here you go.
I updated the attachment, since I saved it whilst having motor spin at neutral disabled.

These are the settings I use to test AlwaysStabilizeWhenArmed.
« Last Edit: January 18, 2016, 09:31:23 pm by telnoi »

f5soh

  • *****
  • 3695
    • LibrePilot
Re: AlwaysStabilizeWhenArmed cautions
« Reply #10 on: January 18, 2016, 09:50:22 pm »
This feature is only enabled for Multirotor frame and your frame is currently Custom

You are using a custom mixer, why ? For accessory ?

Please check this page for how to setup and accessory without a custom mixer:
https://librepilot.atlassian.net/wiki/display/LPDOC/Adding+a+buzzer+to+Multirotor+frame

telnoi

  • *
  • 14
Re: AlwaysStabilizeWhenArmed cautions
« Reply #11 on: January 18, 2016, 10:00:55 pm »
Ah, so that is the reason.
I have a PWM lost model beeper hooked up to a motor output and I am essentially using channel 6 of my Tx to output the throttle signal as a PWM signal through the Revo Nano to tell ensure that the beeper receives an alternating input.

Is it possible to output PWM without a custom mixer?

f5soh

  • *****
  • 3695
    • LibrePilot

telnoi

  • *
  • 14
Re: AlwaysStabilizeWhenArmed cautions
« Reply #13 on: January 18, 2016, 10:17:36 pm »
All working, thanks  :D

nabreu

  • *
  • 23
Re: AlwaysStabilizeWhenArmed cautions
« Reply #14 on: March 11, 2016, 01:50:44 am »
Hi!

Tried this, and it´s very good for Rate or Acro+ but quite dangerous with Attitude if you don´t land on a level terrain (fliped several times). I suspect i know the answer but, is there a way to disable AlwaysStabilizeWhenArmed when using Attitude ?