summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-04-28 00:02:02 -0700
committerKeith Packard <keithp@keithp.com>2017-04-28 00:02:02 -0700
commit7d4f7880b0934c208df65cea8b0f549f32f1c7d2 (patch)
tree84f000d593b64a1ed4d3283a8d3faadfe0b8e93a
parent4896582922ba5227da031c762221c8c7eafc2415 (diff)
altos/micropeak: Update ao_micropeak.h for MicroPeak v2
Allow different sample times, add constant for MicroPeak v2 log files. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/product/ao_micropeak.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/product/ao_micropeak.h b/src/product/ao_micropeak.h
index 6dc7a465..240eed59 100644
--- a/src/product/ao_micropeak.h
+++ b/src/product/ao_micropeak.h
@@ -19,7 +19,9 @@
#ifndef _AO_MICROPEAK_H_
#define _AO_MICROPEAK_H_
+#ifndef SAMPLE_SLEEP
#define SAMPLE_SLEEP AO_MS_TO_TICKS(96)
+#endif
/* 64 sample, or about six seconds worth */
#define GROUND_AVG_SHIFT 6
@@ -36,6 +38,7 @@
#define AO_LOG_ID_MICROPEAK 0
#define AO_LOG_ID_MICROKITE 1
+#define AO_LOG_ID_MICROPEAK2 2
#ifndef AO_LOG_ID
#define AO_LOG_ID AO_LOG_ID_MICROPEAK