summaryrefslogtreecommitdiffstats
path: root/core/cochran.h
diff options
context:
space:
mode:
authorGravatar John Van Ostrand <john@vanostrand.com>2017-05-26 19:58:06 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 07:22:14 -0700
commitf604089ae3613c649fec9c01e7640280cd737e29 (patch)
treee0dcb4b944cbb95fc2d9dfb95a6af58301acff96 /core/cochran.h
parentc6bc88b50d3d4c2bc4d0949ada7300aad9641c6e (diff)
downloadsubsurface-f604089ae3613c649fec9c01e7640280cd737e29.tar.gz
Added support for older Cochran models that have configurable sample intervals.
Corrected problem where dive profiles would include post dive surface interval samples. Added detection for corrupt dives. Signed-off-by: John Van Ostrand <john@vanostrand.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/cochran.h')
-rw-r--r--core/cochran.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/cochran.h b/core/cochran.h
index 97d4361c8..58693be7a 100644
--- a/core/cochran.h
+++ b/core/cochran.h
@@ -5,8 +5,9 @@
#define CMD_DAY 2
#define CMD_MON 5
#define CMD_YEAR 4
-#define CME_START_OFFSET 6 // 4 bytes
+#define CMD_START_OFFSET 6 // 4 bytes
#define CMD_WATER_CONDUCTIVITY 25 // 1 byte, 0=low, 2=high
+#define CMD_PREDIVE_OFFSET 30
#define CMD_START_SGC 42 // 2 bytes
#define CMD_START_TEMP 45 // 1 byte, F
#define CMD_START_DEPTH 56 // 2 bytes, /4=ft
@@ -30,6 +31,7 @@
#define EMC_YEAR 5
#define EMC_START_OFFSET 6 // 4 bytes
#define EMC_WATER_CONDUCTIVITY 24 // 1 byte bits 0:1, 0=low, 2=high
+#define EMC_PREDIVE_OFFSET 30
#define EMC_START_DEPTH 42 // 2 byte, /256=ft
#define EMC_START_TEMP 55 // 1 byte, F
#define EMC_SIT 84 // 2 bytes, minutes, LE