From: Keith Packard Date: Fri, 28 Apr 2017 07:02:02 +0000 (-0700) Subject: altos/micropeak: Update ao_micropeak.h for MicroPeak v2 X-Git-Tag: 1.8~161 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7d4f7880b0934c208df65cea8b0f549f32f1c7d2;hp=4896582922ba5227da031c762221c8c7eafc2415;p=fw%2Faltos 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 --- 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