Page 1 of 1

Controlled accent/decent speed

Posted: Sat Mar 16, 2013 3:10 am
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.

Re: Controlled accent/decent speed

Posted: Sat Mar 16, 2013 8:14 am
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 :)

Re: Controlled accent/decent speed

Posted: Sat Mar 16, 2013 12:23 pm
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?

Re: Controlled accent/decent speed

Posted: Sat Mar 16, 2013 2:53 pm
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