projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e3c4f3
)
altos: Shorten accel-only integration ground interval
author
Keith Packard
<keithp@keithp.com>
Fri, 16 Oct 2020 19:58:57 +0000
(12:58 -0700)
committer
Keith Packard
<keithp@keithp.com>
Fri, 16 Oct 2020 19:58:57 +0000
(12:58 -0700)
Set interval to 64 samples for resetting the accumulated speed/height
on the ground in accel-only configurations.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_sample.c
patch
|
blob
|
history
diff --git
a/src/kernel/ao_sample.c
b/src/kernel/ao_sample.c
index a7f5006590264a0a6d1e6dd348c87fb18e2136d7..46771496b69a4745cd6ea24597f9fa048c7243ba 100644
(file)
--- a/
src/kernel/ao_sample.c
+++ b/
src/kernel/ao_sample.c
@@
-323,7
+323,7
@@
ao_sample_preflight_update(void)
else
ao_sample_preflight_set();
#if !HAS_BARO
- if ((nsamples & 0x
7
f) == 0)
+ if ((nsamples & 0x
3
f) == 0)
ao_kalman_reset_accumulate();
#endif
}