altos: Don't compute filtered average of height error when HAS_ACCEL
authorKeith Packard <keithp@keithp.com>
Mon, 28 Aug 2017 07:15:43 +0000 (00:15 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 28 Aug 2017 07:22:43 +0000 (00:22 -0700)
commit4775b1d9b50a8732d66a0ad3b73ff74901a8cb7f
tree64e3bb83512bee2a2153aa7693c928d50fc135e2
parentdacd4c70700041a018b1f8ba47f22071b9600eaf
altos: Don't compute filtered average of height error when HAS_ACCEL

We only use this for baro-only devices to avoid firing drogue charges
at mach transitions; we trust the combination of accel+baro to do the
right thing when available.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_kalman.c
src/kernel/ao_sample.h