Add support for the Oceanic Geo 4.0
This commit is contained in:
parent
e2ae5f9525
commit
e215d10296
@ -241,6 +241,7 @@ static const dc_descriptor_t g_descriptors[] = {
|
||||
{"Aqualung", "i100", DC_FAMILY_OCEANIC_ATOM2, 0x464E, DC_TRANSPORT_SERIAL, NULL},
|
||||
{"Aqualung", "i770R", DC_FAMILY_OCEANIC_ATOM2, 0x4651, DC_TRANSPORT_SERIAL, NULL},
|
||||
{"Aqualung", "i550C", DC_FAMILY_OCEANIC_ATOM2, 0x4652, DC_TRANSPORT_SERIAL, NULL},
|
||||
{"Oceanic", "Geo 4.0", DC_FAMILY_OCEANIC_ATOM2, 0x4653, DC_TRANSPORT_SERIAL, NULL},
|
||||
/* Mares Nemo */
|
||||
{"Mares", "Nemo", DC_FAMILY_MARES_NEMO, 0, DC_TRANSPORT_SERIAL, NULL},
|
||||
{"Mares", "Nemo Steel", DC_FAMILY_MARES_NEMO, 0, DC_TRANSPORT_SERIAL, NULL},
|
||||
|
||||
@ -36,6 +36,7 @@
|
||||
#define VTX 0x4557
|
||||
#define I750TC 0x455A
|
||||
#define I770R 0x4651
|
||||
#define GEO40 0x4653
|
||||
|
||||
#define MAXRETRIES 2
|
||||
#define MAXDELAY 16
|
||||
@ -137,6 +138,7 @@ static const oceanic_common_version_t oceanic_default_version[] = {
|
||||
{"ELITET31 \0\0 512K"},
|
||||
{"DATAMASK \0\0 512K"},
|
||||
{"COMPMASK \0\0 512K"},
|
||||
{"OCEGEO40 \0\0 512K"},
|
||||
};
|
||||
|
||||
static const oceanic_common_version_t sherwood_wisdom_version[] = {
|
||||
|
||||
@ -92,6 +92,7 @@
|
||||
#define I100 0x464E
|
||||
#define I770R 0x4651
|
||||
#define I550C 0x4652
|
||||
#define GEO40 0x4653
|
||||
|
||||
#define NORMAL 0
|
||||
#define GAUGE 1
|
||||
@ -164,7 +165,7 @@ oceanic_atom2_parser_create (dc_parser_t **out, dc_context_t *context, unsigned
|
||||
model == INSIGHT2 || model == ZEN ||
|
||||
model == I300 || model == I550 ||
|
||||
model == I200 || model == I200C ||
|
||||
model == I300C) {
|
||||
model == I300C || model == GEO40) {
|
||||
parser->headersize -= PAGESIZE;
|
||||
} else if (model == VT4 || model == VT41) {
|
||||
parser->headersize += PAGESIZE;
|
||||
@ -286,6 +287,7 @@ oceanic_atom2_parser_get_datetime (dc_parser_t *abstract, dc_datetime_t *datetim
|
||||
case I200C:
|
||||
case I100:
|
||||
case I300C:
|
||||
case GEO40:
|
||||
datetime->year = ((p[3] & 0xE0) >> 1) + (p[4] & 0x0F) + 2000;
|
||||
datetime->month = (p[4] & 0xF0) >> 4;
|
||||
datetime->day = p[3] & 0x1F;
|
||||
@ -722,7 +724,7 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_
|
||||
parser->model == MANTA || parser->model == I300 ||
|
||||
parser->model == I200 || parser->model == I100 ||
|
||||
parser->model == I300C || parser->model == TALIS ||
|
||||
parser->model == I200C) {
|
||||
parser->model == I200C || parser->model == GEO40) {
|
||||
have_pressure = 0;
|
||||
}
|
||||
|
||||
@ -880,7 +882,8 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_
|
||||
parser->model == OCI || parser->model == A300 ||
|
||||
parser->model == I450T || parser->model == I300 ||
|
||||
parser->model == I200 || parser->model == I100 ||
|
||||
parser->model == I300C || parser->model == I200C) {
|
||||
parser->model == I300C || parser->model == I200C ||
|
||||
parser->model == GEO40) {
|
||||
temperature = data[offset + 3];
|
||||
} else if (parser->model == OCS || parser->model == TX1) {
|
||||
temperature = data[offset + 1];
|
||||
@ -952,7 +955,8 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_
|
||||
parser->model == OCI || parser->model == A300 ||
|
||||
parser->model == I450T || parser->model == I300 ||
|
||||
parser->model == I200 || parser->model == I100 ||
|
||||
parser->model == I300C || parser->model == I200C)
|
||||
parser->model == I300C || parser->model == I200C ||
|
||||
parser->model == GEO40)
|
||||
depth = (data[offset + 4] + (data[offset + 5] << 8)) & 0x0FFF;
|
||||
else if (parser->model == ATOM1)
|
||||
depth = data[offset + 3] * 16;
|
||||
@ -1005,7 +1009,8 @@ oceanic_atom2_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback_
|
||||
parser->model == OC1A || parser->model == OC1B ||
|
||||
parser->model == OC1C || parser->model == OCI ||
|
||||
parser->model == I100 || parser->model == I300C ||
|
||||
parser->model == I450T || parser->model == I200C) {
|
||||
parser->model == I450T || parser->model == I200C ||
|
||||
parser->model == GEO40) {
|
||||
decostop = (data[offset + 7] & 0xF0) >> 4;
|
||||
decotime = array_uint16_le(data + offset + 6) & 0x0FFF;
|
||||
have_deco = 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user