Skip to main content

Module dive

Module dive 

Source
Expand description

The dive data model (spec).

A download yields RawDives; a family’s parser turns one into a Dive. The model mirrors one DiveJSON recording: header values, gas mixes, tanks, samples and events from one device.

Structs§

DeviceInfo
Identification of the device that recorded a dive. Strings are as the device reports them.
Dive
A parsed dive: one device’s recording of one dive.
Event
Something that happened at one instant of the dive.
GasMix
A breathing gas.
Location
A position in decimal degrees (WGS 84).
RawDive
A dive as downloaded, before parsing: the bytes exactly as the device sent them, and the fingerprint that identifies the dive for incremental downloads.
Sample
The values a device recorded at one instant. Absent values were not recorded.
Tank
A tank, usually one monitored by a wireless pressure transmitter.
TankPressure
A tank pressure reading.

Enums§

Deco
Decompression state at a sample.
DecoModel
A decompression model and the settings it ran with.
DiveMode
The mode a dive computer ran in.
EventKind
The kinds of Event.
GasUsage
What a gas or tank is used for.
Salinity
The water type a device converts pressure to depth with.