FW manual rudder control in stabilize

Adds manual rudder input in stabilized mode, allowing e.g. intentional slip/skid on landing.
Also adds function "perf latency" to print the latency bucket counters, and code to calculate mean and variance to the INTERVAL performance counter. (currently prints sqrt(variance))
Also work in progress to calculate a dynamic offset between baro alt and gps altitude.

OK

On Tue, Dec 23, 2014 at 3:22 PM, Lorenz Meier <notifications@github.com>
wrote:

> In src/modules/ekf_att_pos_estimator/ekf_att_pos_estimator_main.cpp
> <https://github.com/PX4/Firmware/pull/1528#discussion-diff-22238704>:
>
> > @@ -782,6 +784,16 @@ FixedwingEstimator::task_main()
> >  	_gps.vel_e_m_s = 0.0f;
> >  	_gps.vel_d_m_s = 0.0f;
> >
> > +	// init lowpass filters for baro and gps altitude
> > +	float _gps_alt_filt = 0, _baro_alt_filt1 = 0, _baro_alt_filt2 = 0;
> > +	int _dec_cntr = 0;
> > +	math::LowPassFilter2p* _gps_alt_lpf = new math::LowPassFilter2p(5.0f, 0.025f);
>
> Could we do this as object, not as pointer? The delete call is missing and
> there is no benefit in using 'new' here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/PX4/Firmware/pull/1528/files#r22238704>.
>



-- 
Mark Whitehorn
kd0aij@gmail.com