Finished Cochran dive log import

I fixed up the decode and finished the parse for Cochran EMC, Commander
and Gemini computers. I suspect that this code may only work with files
from certain versions of Cochran Analyst. It works with my own CAN files
and with the samples that came with Analyst v4.01v.

A seemingly arbitrary offset of 0x4914 is needed to access data.
The previous code uses 0x4a14 and 0x4b14. I suspect these are from
different version of Analyst.

[Dirk Hohndel: whitespace cleanup, add files to subsurface.pro, made sure
	       this compiles without the corresponding patch to
	       libdivecomputer (that isn't upstream, yet), cleaned up the
	       usage of structs, removed a few unused variables]

Signed-off-by: John Van Ostrand <john@vanostrand.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
John Van Ostrand 2014-10-17 21:03:37 -04:00 committed by Dirk Hohndel
parent b5dedcfba4
commit 49401eec0b
8 changed files with 933 additions and 129 deletions

View file

@ -21,6 +21,8 @@ QMAKE_CLEAN += $$TARGET
VERSION = 4.2
HEADERS = \
cochran_cmdr.h \
cochran_emc.h \
color.h \
deco.h \
device.h \
@ -110,6 +112,7 @@ android: HEADERS -= \
qt-ui/printoptions.h
SOURCES = \
cochran.c \
deco.c \
device.c \
dive.c \