Package kenozooid :: Package driver :: Module su :: Class SensusUltraDataParser

Class SensusUltraDataParser

source code

object --+
         |
        SensusUltraDataParser

Reefnet Sensus Ultra dive logger data parser.
Instance Methods
 
dump(self)
Download Sensus Ultra
source code
 
dives(self, dump)
Convert Reefnet Sensus Ultra dive data into UDDF format.
source code
 
gases(self, data)
Return empty tuple - no gas information stored by Sensus Ultra.
source code
 
version(self, data)
Get Sensus Ultra version from raw data.
source code
 
parse_dive(self, buffer, size, fingerprint, fsize, pdata, parser, boot_time, dives)
Callback used by libdivecomputer's library function to extract dives from a device and put it into dives queue.
source code
 
parse_sample(self, st, sample, pdata, dive_header, sdata, sq)
Convert dive samples data generated with libdivecomputer library into UDDF waypoint structure.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

dump(self)

source code 

Download Sensus Ultra

  • handshake packet
  • user data
  • data of all dive profiles

gases(self, data)

source code 
Return empty tuple - no gas information stored by Sensus Ultra.
Parameters:
  • data - Sensus Ultra data.

version(self, data)

source code 
Get Sensus Ultra version from raw data.
Parameters:
  • data - Raw dive computer data.

parse_dive(self, buffer, size, fingerprint, fsize, pdata, parser, boot_time, dives)

source code 
Callback used by libdivecomputer's library function to extract dives from a device and put it into dives queue.
Parameters:
  • buffer - Buffer with binary dive data.
  • size - Size of buffer dive data.
  • fingerprint - Fingerprint buffer.
  • fsize - Size of fingerprint buffer.
  • pdata - Parser user data (nothing at the moment).
  • parser - libdivecomputer parser instance.
  • boot_time - Sensus Ultra boot time.
  • dives - Queue of dives to be consumed by caller.

parse_sample(self, st, sample, pdata, dive_header, sdata, sq)

source code 
Convert dive samples data generated with libdivecomputer library into UDDF waypoint structure.
Parameters:
  • st - Sample type as specified in parser.h.
  • sample - Sample data.
  • pdata - Parser user data (nothing at the moment).
  • dive_header - Dive header of parsed dive.
  • sdata - Temporary sample data.
  • sq - List of samples.