Controlled accent/decent speed

Post Reply
Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Controlled accent/decent speed

Post by Katch »

Quads have been gathering dust and I've been busy with other things - so not been keeping up with developments.

Seeing how 2.2 just dropped it might be time to dust them off and have a play again... when it stops raining!

Just wondering if any one knows if there has been any development to add controlled accent/decent similar to what is available on the Autoquad 6 platform;

Throttle with dead band - hover while in the dead band - when throttle is above the dead band quad rises at a set rate regard less of how much throttle is applied and visa versa when the throttle is below the dead band.

Tried searching didn't turn anything up.

subaru4wd
Posts: 316
Joined: Sat Dec 08, 2012 2:16 am

Re: Controlled accent/decent speed

Post by subaru4wd »

If you have a BARO this is how your quad acts with it active.

2.2 does a nice job at it too :)

Katch
Posts: 280
Joined: Thu Aug 04, 2011 1:44 pm

Re: Controlled accent/decent speed

Post by Katch »

So it is default behaviour in Alt Hold?

Anyone know where in the code you change the speed of accent and decent during a Baro Hold?

User avatar
KasparsL
Posts: 75
Joined: Wed May 16, 2012 3:31 pm

Re: Controlled accent/decent speed

Post by KasparsL »

Katch wrote:So it is default behaviour in Alt Hold?

Anyone know where in the code you change the speed of accent and decent during a Baro Hold?


It works a little different - there is a deadband which can be defined, and if increased or decreased the throttle, it will accend or deccend with speed proportional to stick input.

Make sure that this us commented:

Code: Select all

  /* Natural alt change for rapid pilots. It's temporary switch OFF the althold when throttle stick is out of deadband defined with ALT_HOLD_THROTTLE_NEUTRAL_ZONE
   * but if it's commented: Smooth alt change routine is activated, for slow auto and aerophoto modes (in general solution from alexmos). It's slowly increase/decrease
   * altitude proportional to stick movement (+/-100 throttle gives about +/-50 cm in 1 second with cycle time about 3-4ms)
   */
  #define ALTHOLD_FAST_THROTTLE_CHANGE

Post Reply