Add support for the Shearwater Tern
This commit is contained in:
parent
cfe345aa8e
commit
de6696bc7f
@ -357,6 +357,7 @@ static const dc_descriptor_t g_descriptors[] = {
|
||||
{"Shearwater", "Peregrine", DC_FAMILY_SHEARWATER_PETREL, 9, DC_TRANSPORT_BLE, dc_filter_shearwater},
|
||||
{"Shearwater", "Petrel 3", DC_FAMILY_SHEARWATER_PETREL, 10, DC_TRANSPORT_BLE, dc_filter_shearwater},
|
||||
{"Shearwater", "Perdix 2", DC_FAMILY_SHEARWATER_PETREL, 11, DC_TRANSPORT_BLE, dc_filter_shearwater},
|
||||
{"Shearwater", "Tern", DC_FAMILY_SHEARWATER_PETREL, 12, DC_TRANSPORT_BLE, dc_filter_shearwater},
|
||||
/* Dive Rite NiTek Q */
|
||||
{"Dive Rite", "NiTek Q", DC_FAMILY_DIVERITE_NITEKQ, 0, DC_TRANSPORT_SERIAL, NULL},
|
||||
/* Citizen Hyper Aqualand */
|
||||
@ -668,6 +669,7 @@ dc_filter_shearwater (dc_descriptor_t *descriptor, dc_transport_t transport, con
|
||||
"Perdix 2",
|
||||
"Teric",
|
||||
"Peregrine",
|
||||
"Tern"
|
||||
};
|
||||
|
||||
if (transport == DC_TRANSPORT_BLUETOOTH || transport == DC_TRANSPORT_BLE) {
|
||||
|
||||
@ -738,6 +738,9 @@ shearwater_common_get_model (shearwater_common_device_t *device, unsigned int ha
|
||||
case 0x1512:
|
||||
model = PEREGRINE;
|
||||
break;
|
||||
case 0xC0E0:
|
||||
model = TERN;
|
||||
break;
|
||||
default:
|
||||
WARNING (device->base.context, "Unknown hardware type 0x%04x.", hardware);
|
||||
}
|
||||
|
||||
@ -51,6 +51,7 @@ extern "C" {
|
||||
#define PEREGRINE 9
|
||||
#define PETREL3 10
|
||||
#define PERDIX2 11
|
||||
#define TERN 12
|
||||
|
||||
#define NSTEPS 10000
|
||||
#define STEP(i,n) ((NSTEPS * (i) + (n) / 2) / (n))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user