diff options
author | Keith Packard <keithp@keithp.com> | 2017-08-28 00:15:43 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-08-28 00:22:43 -0700 |
commit | 4775b1d9b50a8732d66a0ad3b73ff74901a8cb7f (patch) | |
tree | 64e3bb83512bee2a2153aa7693c928d50fc135e2 /src/kernel/ao_sample.h | |
parent | dacd4c70700041a018b1f8ba47f22071b9600eaf (diff) |
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>
Diffstat (limited to 'src/kernel/ao_sample.h')
-rw-r--r-- | src/kernel/ao_sample.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/ao_sample.h b/src/kernel/ao_sample.h index f89d6a4c..fbef031d 100644 --- a/src/kernel/ao_sample.h +++ b/src/kernel/ao_sample.h @@ -180,7 +180,9 @@ extern __xdata ao_v_t ao_max_height; /* max of ao_height */ extern __xdata ao_v_t ao_avg_height; /* running average of height */ extern __pdata ao_v_t ao_error_h; +#if !HAS_ACCEL extern __pdata ao_v_t ao_error_h_sq_avg; +#endif #if HAS_ACCEL extern __pdata ao_v_t ao_error_a; |