[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4792: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4793: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
AutoQuad Forum • View topic - Divergence in Position mode, and a new mode PA.

Divergence in Position mode, and a new mode PA.

News, Setup, Compiling, Flashing, Development

Divergence in Position mode, and a new mode PA.

Postby chestnut » Wed May 28, 2014 5:11 pm

Dear all,

When we are flying in Position mode, if you fly very fast, suddenly you release stick, maybe divergence appear and crash. Example : https://www.youtube.com/watch?v=JmxGvsXB1q4.
So I have a idea, create a new mode, that i called PA mode (position and attitude), when i use my multirotor for flycam, i fly in position mode, when I push pitch and roll stick, my multirotor fly in attitude mode after that if i release stick, wait a minute when my multirotor stable so possition mode start.

I will post video in PA mode in the next week.
chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam

Re: Divergence in Position mode, and a new mode PA.

Postby SuperSharpShooter » Thu May 29, 2014 12:18 am

Would you consider trying to incorporate a wind correction into your PA mode so that it will still fly straight when flying in attitude mode? Same as how arducopter hybrid loiter works. I take it you're familiar with that?
-Glenn
SuperSharpShooter
 
Posts: 276
Joined: Sat Jan 12, 2013 9:44 pm

Re: Divergence in Position mode, and a new mode PA.

Postby LPR » Thu May 29, 2014 12:56 am

Divergence has been discussed many times and there are many ways to stop the problem.

The two major causes of divergence is vibrations and under powered motors.

You can tune the AQ to stop divergence. lowering the Tilt Angle D with make a difference. Lowering the Tilt Angle P will also help but it also slows the rate of tilt which I don't like.

In most cases if you can hover with 50% throttle you should have enough power to avoid divergence.

A flexible frame or having the AQ board mounted with some type of vibration dampening can also cause divergence.

Larry
LPR
 
Posts: 1323
Joined: Tue Jun 26, 2012 1:29 pm
Location: MN, USA

Re: Divergence in Position mode, and a new mode PA.

Postby chestnut » Thu Jun 05, 2014 4:39 am

Hi all,

I just added a new mode Attitude for fast flying, it's independent with Possition mode. It's very useful for FLYCAM.
chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam

Re: Divergence in Position mode, and a new mode PA.

Postby Max » Thu Jun 05, 2014 5:11 am

What are you referring to as divergence? In the video you linked to I don't see anything close to crashing. I've also tested releasing stick quickly or changing direction in PH mode, and have never run into any issues on properly tuned MR. Here are a couple quick examples:

http://www.youtube.com/watch?v=PvF55OWo ... page#t=324
http://www.youtube.com/watch?feature=pl ... _9nE#t=146

How is your new Attitude mode different from PH/DVH?

-Max
Max
 
Posts: 2814
Joined: Mon Aug 13, 2012 9:45 pm
Location: Near Ithaca, NY, USA

Re: Divergence in Position mode, and a new mode PA.

Postby chestnut » Thu Jun 05, 2014 6:09 am

Hi Max,

When Drone in position mode and fly very fast (about > 30 degree pitch or roll) and sundenly you release stick, if battery or motor doing close maximum power, divergence will appear. I have seen it before.
I just added stich for that :
...
else if (supervisorData.state & STATE_ARMED && RADIO_FLAPS > -250) {
if(RADIO_GEAR > 0)
{
//old code
}
else //just Altitude Hold engaged
{
if (navData.mode < NAV_STATUS_ALTHOLD || navData.mode == NAV_STATUS_POSHOLD) {
// record this altitude as the hold altitude
navSetHoldAlt(UKF_ALTITUDE, 0);

// set integral to current RC throttle setting
pidZeroIntegral(navData.altSpeedPID, -UKF_VELD, motorsData.throttle * RADIO_MID_THROTTLE / MOTORS_SCALE);
pidZeroIntegral(navData.altPosPID, UKF_ALTITUDE, 0.0f);

navData.holdSpeedAlt = navData.targetHoldSpeedAlt = -UKF_VELD;
navData.holdMaxVertSpeed = p[NAV_ALT_POS_OM];
navData.mode = NAV_STATUS_ALTHOLD;

// notify ground
AQ_NOTICE("Altitude Hold engaged\n");
}
chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam

Re: Divergence in Position mode, and a new mode PA.

Postby chestnut » Thu Jun 05, 2014 6:11 am

When you fly attitude mode, you can go PH mode with RADIO_GEAR, and if you want to fly very fast, you can go ATTITUDE mode. It's really cool, I will up video as soon.
chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam

Re: Divergence in Position mode, and a new mode PA.

Postby Max » Thu Jun 05, 2014 6:45 am

So in other words this is an altitude-hold-only mode, w/out position hold engaged?

-Max
Max
 
Posts: 2814
Joined: Mon Aug 13, 2012 9:45 pm
Location: Near Ithaca, NY, USA

Re: Divergence in Position mode, and a new mode PA.

Postby chestnut » Thu Jun 05, 2014 7:02 am

chestnut
 
Posts: 71
Joined: Wed Oct 23, 2013 3:45 am
Location: VietNam

Re: Divergence in Position mode, and a new mode PA.

Postby LPR » Thu Jun 05, 2014 1:37 pm

Chestun

Your altitude hold mode is a good addition but you might think of disabling GPS for altitude hold if you are flying in an area where there is trees. Poor GPS signals can cause a rapid altitude change and if your flying fast you could have a problem.

Larry
LPR
 
Posts: 1323
Joined: Tue Jun 26, 2012 1:29 pm
Location: MN, USA

Next

Return to AQ Firmware

Who is online

Users browsing this forum: No registered users and 24 guests

cron