Home | Trees | Indices | Help |
|
---|
|
Classes | |
EventFlags Event flags. |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
logger = logging.getLogger(__name__)
|
|
COMMANDS = b'\x69', 64, (b'\x60', 5), (b'\x61', 65536),
|
|
MODEL = {0x0a: 'OSTC 3', 0x1a: 'OSTC 3+', 0x05: 'OSTC cR', 0x0
|
|
DIVE_MODES = 'opencircuit', 'closedcircuit', 'opencircuit', 'a
|
|
MIN_SAMPLE_SIZE = 3
|
|
EVENT_DATA_SIZE = 2, 1, 1, 2
|
|
GAS_TYPE_DISABLED = 0
|
|
GAS_TYPE_FIRST = 1
|
|
UNPACK_GAS_MIX = struct.Struct('<BB').unpack
|
|
UNPACK_DECO = struct.Struct('<BB').unpack
|
|
RawData = namedtuple('Data', ['version', 'features', 'headers'
|
|
Header = namedtuple('Header', ['size', 'datetime', 'depth', 'd
|
|
ProfileHeader = namedtuple('ProfileHeader', ['size', 'rate', '
|
|
Divisor = namedtuple('Divisor', ['type', 'size', 'divisor'])
|
|
Events = namedtuple('Events', ['alarm', 'events'])
|
|
EventData = namedtuple('EventData', ['manual_gas', 'gas', 'set
|
|
to_int = partial(int.from_bytes, byteorder= 'little', signed=
|
|
to_timestamp = lambda v:
|
|
to_depth_adj = lambda v:
|
|
to_depth = lambda v:
|
|
to_duration = lambda v:
|
|
to_temp = lambda v:
|
|
to_gas = lambda v:
|
|
to_gas_list = lambda data:
|
Function Details |
|
Get first gas from dive header. If there is no first gas configured, then pick first non-disabled gas. |
|
|
Create iterator of parsers for dive profile extended data. Dive profile samples contains variable amount of extended data and require a specific parser.
|
Create extended data parser for a specific dive profile sample. Divisor information is used to determine how data should be parsed for given dive profile sample number.
|
Get model and version information about a hwOS family OSTC dive computer. :param data: Raw data fetched from a hwOS family OSTC dive computer. .. seealso:: `RawData` |
|
|
|
|
Calculate index of next dive profile sample. The calculation is performed using dive profile raw data and index of
current dive profile sample. The
|
Partition the data using indexes. Each index is start of each item.
|
|
|
Variables Details |
MODEL
|
DIVE_MODES
|
RawData
|
Header
|
ProfileHeader
|
EventData
|
to_int
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Aug 16 20:40:50 2019 | http://epydoc.sourceforge.net |